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.
default_anon_const_substs
1 parent 3ea3257 commit d823155Copy full SHA for d823155
compiler/rustc_typeck/src/collect/type_of.rs
@@ -269,6 +269,11 @@ fn get_path_containing_arg_in_pat<'hir>(
269
}
270
271
pub(super) fn default_anon_const_substs(tcx: TyCtxt<'_>, def_id: DefId) -> SubstsRef<'_> {
272
+ let generics = tcx.generics_of(def_id);
273
+ if let Some(parent) = generics.parent {
274
+ let _cycle_check = tcx.predicates_of(parent);
275
+ }
276
+
277
let substs = InternalSubsts::identity_for_item(tcx, def_id);
278
// We only expect the following lifetimes, types and constants as default substs.
279
//
0 commit comments