@@ -2697,16 +2697,12 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
2697
2697
2698
2698
fn resolve_place_op ( & self , op : PlaceOp , is_mut : bool ) -> ( Option < DefId > , ast:: Ident ) {
2699
2699
let ( tr, name) = match ( op, is_mut) {
2700
- ( PlaceOp :: Deref , false ) =>
2701
- ( self . tcx . lang_items ( ) . deref_trait ( ) , "deref" ) ,
2702
- ( PlaceOp :: Deref , true ) =>
2703
- ( self . tcx . lang_items ( ) . deref_mut_trait ( ) , "deref_mut" ) ,
2704
- ( PlaceOp :: Index , false ) =>
2705
- ( self . tcx . lang_items ( ) . index_trait ( ) , "index" ) ,
2706
- ( PlaceOp :: Index , true ) =>
2707
- ( self . tcx . lang_items ( ) . index_mut_trait ( ) , "index_mut" ) ,
2700
+ ( PlaceOp :: Deref , false ) => ( self . tcx . lang_items ( ) . deref_trait ( ) , sym:: deref) ,
2701
+ ( PlaceOp :: Deref , true ) => ( self . tcx . lang_items ( ) . deref_mut_trait ( ) , sym:: deref_mut) ,
2702
+ ( PlaceOp :: Index , false ) => ( self . tcx . lang_items ( ) . index_trait ( ) , sym:: index) ,
2703
+ ( PlaceOp :: Index , true ) => ( self . tcx . lang_items ( ) . index_mut_trait ( ) , sym:: index_mut) ,
2708
2704
} ;
2709
- ( tr, ast:: Ident :: from_str ( name) )
2705
+ ( tr, ast:: Ident :: with_empty_ctxt ( name) )
2710
2706
}
2711
2707
2712
2708
fn try_overloaded_place_op ( & self ,
0 commit comments