File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -794,7 +794,10 @@ fn trans_foreign_mod(ccx: @crate_ctxt,
794
794
}
795
795
}
796
796
}
797
- ast:: foreign_item_const ( * ) => { }
797
+ ast:: foreign_item_const ( * ) => {
798
+ let ident = ccx. sess . parse_sess . interner . get ( foreign_item. ident ) ;
799
+ ccx. item_symbols . insert ( foreign_item. id , copy * ident) ;
800
+ }
798
801
}
799
802
}
800
803
}
Original file line number Diff line number Diff line change @@ -306,7 +306,10 @@ struct lookup {
306
306
} ;
307
307
308
308
let trt_methods = ty:: trait_methods ( tcx, trait_id) ;
309
- match vec:: position ( * trt_methods, |m| m. ident == self . m_name ) {
309
+ let match_fn: & fn ( m : ty:: method ) -> bool = |m| {
310
+ m. self_ty != ast:: sty_static && m. ident == self . m_name
311
+ } ;
312
+ match vec:: position ( * trt_methods, match_fn) {
310
313
None => {
311
314
/* check next bound */
312
315
trait_bnd_idx += 1 u;
You can’t perform that action at this time.
0 commit comments