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