@@ -366,7 +366,7 @@ impl<'a, 'b, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for AssociatedTypeNormalizer<'a,
366366
367367 let ty = ty. super_fold_with ( self ) ;
368368 match ty. sty {
369- ty:: Anon ( def_id, substs) if !substs. has_escaping_regions ( ) => { // (*)
369+ ty:: Opaque ( def_id, substs) if !substs. has_escaping_regions ( ) => { // (*)
370370 // Only normalize `impl Trait` after type-checking, usually in codegen.
371371 match self . param_env . reveal {
372372 Reveal :: UserFacing => ty,
@@ -986,7 +986,7 @@ fn assemble_candidates_from_trait_def<'cx, 'gcx, 'tcx>(
986986 ty:: Projection ( ref data) => {
987987 ( data. trait_ref ( tcx) . def_id , data. substs )
988988 }
989- ty:: Anon ( def_id, substs) => ( def_id, substs) ,
989+ ty:: Opaque ( def_id, substs) => ( def_id, substs) ,
990990 ty:: Infer ( ty:: TyVar ( _) ) => {
991991 // If the self-type is an inference variable, then it MAY wind up
992992 // being a projected type, so induce an ambiguity.
@@ -1518,7 +1518,7 @@ fn confirm_impl_candidate<'cx, 'gcx, 'tcx>(
15181518 let substs = translate_substs ( selcx. infcx ( ) , param_env, impl_def_id, substs, assoc_ty. node ) ;
15191519 let ty = if let ty:: AssociatedKind :: Existential = assoc_ty. item . kind {
15201520 let item_substs = Substs :: identity_for_item ( tcx, assoc_ty. item . def_id ) ;
1521- tcx. mk_anon ( assoc_ty. item . def_id , item_substs)
1521+ tcx. mk_opaque ( assoc_ty. item . def_id , item_substs)
15221522 } else {
15231523 tcx. type_of ( assoc_ty. item . def_id )
15241524 } ;
0 commit comments