@@ -2698,16 +2698,12 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
26982698
26992699 fn resolve_place_op ( & self , op : PlaceOp , is_mut : bool ) -> ( Option < DefId > , ast:: Ident ) {
27002700 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) ,
27092705 } ;
2710- ( tr, ast:: Ident :: from_str ( name) )
2706+ ( tr, ast:: Ident :: with_empty_ctxt ( name) )
27112707 }
27122708
27132709 fn try_overloaded_place_op ( & self ,
0 commit comments