@@ -31,6 +31,7 @@ use infer::type_variable::TypeVariableOrigin;
3131use middle:: const_val:: ConstVal ;
3232use mir:: interpret:: { GlobalId } ;
3333use rustc_data_structures:: snapshot_map:: { Snapshot , SnapshotMap } ;
34+ use syntax:: ast:: Ident ;
3435use syntax:: symbol:: Symbol ;
3536use ty:: subst:: { Subst , Substs } ;
3637use ty:: { self , ToPredicate , ToPolyTraitRef , Ty , TyCtxt } ;
@@ -1452,7 +1453,7 @@ fn confirm_callable_candidate<'cx, 'gcx, 'tcx>(
14521453 projection_ty : ty:: ProjectionTy :: from_ref_and_name (
14531454 tcx,
14541455 trait_ref,
1455- Symbol :: intern ( FN_OUTPUT_NAME ) ,
1456+ Ident :: from_str ( FN_OUTPUT_NAME ) ,
14561457 ) ,
14571458 ty : ret_type
14581459 }
@@ -1546,7 +1547,7 @@ fn assoc_ty_def<'cx, 'gcx, 'tcx>(
15461547 let impl_node = specialization_graph:: Node :: Impl ( impl_def_id) ;
15471548 for item in impl_node. items ( tcx) {
15481549 if item. kind == ty:: AssociatedKind :: Type &&
1549- tcx. hygienic_eq ( item. name , assoc_ty_name, trait_def_id) {
1550+ tcx. hygienic_eq ( item. name . to_ident ( ) , assoc_ty_name. to_ident ( ) , trait_def_id) {
15501551 return specialization_graph:: NodeItem {
15511552 node : specialization_graph:: Node :: Impl ( impl_def_id) ,
15521553 item,
0 commit comments