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 749eeee commit bf5db6aCopy full SHA for bf5db6a
compiler/rustc_hir_typeck/src/lib.rs
@@ -115,7 +115,8 @@ fn typeck_with_inspect<'tcx>(
115
return tcx.typeck(typeck_root_def_id);
116
}
117
118
- if let DefKind::AnonConst = tcx.def_kind(def_id)
+ if tcx.features().min_generic_const_args()
119
+ && let DefKind::AnonConst = tcx.def_kind(def_id)
120
&& let ty::AnonConstKind::MCG = tcx.anon_const_kind(def_id)
121
&& let Err(e) = tcx.check_anon_const_invalid_param_uses(def_id)
122
{
0 commit comments