File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ pub type LintDict = HashMap<&'static str, LintSpec>;
135
135
enum AttributedNode < ' self > {
136
136
Item ( @ast:: item ) ,
137
137
Method ( & ' self ast:: method ) ,
138
- Crate ( @ ast:: Crate ) ,
138
+ Crate ( & ' self ast:: Crate ) ,
139
139
}
140
140
141
141
#[ deriving( Eq ) ]
@@ -1565,7 +1565,7 @@ impl Visitor<@mut Context> for LintCheckVisitor {
1565
1565
}
1566
1566
}
1567
1567
1568
- pub fn check_crate ( tcx : ty:: ctxt , crate : @ ast:: Crate ) {
1568
+ pub fn check_crate ( tcx : ty:: ctxt , crate : & ast:: Crate ) {
1569
1569
let cx = @mut Context {
1570
1570
dict : @get_lint_dict ( ) ,
1571
1571
curr : SmallIntMap :: new ( ) ,
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ impl ReachableContext {
268
268
269
269
// Step 1: Mark all public symbols, and add all public symbols that might
270
270
// be inlined to a worklist.
271
- fn mark_public_symbols ( & self , crate : @ Crate ) {
271
+ fn mark_public_symbols ( & self , crate : & Crate ) {
272
272
let reachable_symbols = self . reachable_symbols ;
273
273
let worklist = self . worklist ;
274
274
@@ -429,7 +429,7 @@ impl ReachableContext {
429
429
430
430
pub fn find_reachable ( tcx : ty:: ctxt ,
431
431
method_map : typeck:: method_map ,
432
- crate : @ Crate )
432
+ crate : & Crate )
433
433
-> @mut HashSet < NodeId > {
434
434
// XXX(pcwalton): We only need to mark symbols that are exported. But this
435
435
// is more complicated than just looking at whether the symbol is `pub`,
You can’t perform that action at this time.
0 commit comments