@@ -366,7 +366,7 @@ impl<'a, 'b, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for AssociatedTypeNormalizer<'a,
366
366
367
367
let ty = ty. super_fold_with ( self ) ;
368
368
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 ( ) => { // (*)
370
370
// Only normalize `impl Trait` after type-checking, usually in codegen.
371
371
match self . param_env . reveal {
372
372
Reveal :: UserFacing => ty,
@@ -986,7 +986,7 @@ fn assemble_candidates_from_trait_def<'cx, 'gcx, 'tcx>(
986
986
ty:: Projection ( ref data) => {
987
987
( data. trait_ref ( tcx) . def_id , data. substs )
988
988
}
989
- ty:: Anon ( def_id, substs) => ( def_id, substs) ,
989
+ ty:: Opaque ( def_id, substs) => ( def_id, substs) ,
990
990
ty:: Infer ( ty:: TyVar ( _) ) => {
991
991
// If the self-type is an inference variable, then it MAY wind up
992
992
// being a projected type, so induce an ambiguity.
@@ -1518,7 +1518,7 @@ fn confirm_impl_candidate<'cx, 'gcx, 'tcx>(
1518
1518
let substs = translate_substs ( selcx. infcx ( ) , param_env, impl_def_id, substs, assoc_ty. node ) ;
1519
1519
let ty = if let ty:: AssociatedKind :: Existential = assoc_ty. item . kind {
1520
1520
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)
1522
1522
} else {
1523
1523
tcx. type_of ( assoc_ty. item . def_id )
1524
1524
} ;
0 commit comments