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 b5a0503 commit f243befCopy full SHA for f243bef
compiler/rustc_mir_transform/src/lib.rs
@@ -245,8 +245,7 @@ fn mir_const_qualif(tcx: TyCtxt<'_>, def: LocalDefId) -> ConstQualifs {
245
246
// No need to const-check a non-const `fn`.
247
match const_kind {
248
- Some(ConstContext::Const { .. } | ConstContext::Static(_))
249
- | Some(ConstContext::ConstFn) => {}
+ Some(ConstContext::Const { .. } | ConstContext::Static(_) | ConstContext::ConstFn) => {}
250
None => span_bug!(
251
tcx.def_span(def),
252
"`mir_const_qualif` should only be called on const fns and const items"
0 commit comments