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 2140016 commit 0312438Copy full SHA for 0312438
compiler/rustc_typeck/src/collect/type_of.rs
@@ -275,6 +275,11 @@ fn get_path_containing_arg_in_pat<'hir>(
275
}
276
277
pub(super) fn default_anon_const_substs(tcx: TyCtxt<'_>, def_id: DefId) -> SubstsRef<'_> {
278
+ let generics = tcx.generics_of(def_id);
279
+ if let Some(parent) = generics.parent {
280
+ let _cycle_check = tcx.predicates_of(parent);
281
+ }
282
+
283
let substs = InternalSubsts::identity_for_item(tcx, def_id);
284
// We only expect substs with the following type flags as default substs.
285
//
0 commit comments