We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b20c6a commit 2e215cdCopy full SHA for 2e215cd
compiler/rustc_privacy/src/lib.rs
@@ -253,6 +253,11 @@ where
253
})?;
254
}
255
256
+ ty::TyAlias(def_id, substs) => {
257
+ let generic_ty = tcx.bound_type_of(def_id);
258
+ let concrete_ty = tcx.peel_off_ty_alias(generic_ty.subst(tcx, substs));
259
+ return self.visit_ty(concrete_ty);
260
+ }
261
// These types don't have their own def-ids (but may have subcomponents
262
// with def-ids that should be visited recursively).
263
ty::Bool
@@ -270,6 +275,7 @@ where
270
275
| ty::FnPtr(..)
271
276
| ty::Param(..)
272
277
| ty::Error(_)
278
+ | ty::TyAlias(..)
273
279
| ty::GeneratorWitness(..) => {}
274
280
ty::Bound(..) | ty::Placeholder(..) | ty::Infer(..) => {
281
bug!("unexpected type: {:?}", ty)
0 commit comments