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