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