Skip to content

Commit 66b3585

Browse files
committed
Simplify a pattern.
1 parent 2932e09 commit 66b3585

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_mir_transform/src

1 file changed

+1
-2
lines changed

compiler/rustc_mir_transform/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ fn mir_const_qualif(tcx: TyCtxt<'_>, def: LocalDefId) -> ConstQualifs {
246246

247247
// No need to const-check a non-const `fn`.
248248
match const_kind {
249-
Some(ConstContext::Const { .. } | ConstContext::Static(_))
250-
| Some(ConstContext::ConstFn) => {}
249+
Some(ConstContext::Const { .. } | ConstContext::Static(_) | ConstContext::ConstFn) => {}
251250
None => span_bug!(
252251
tcx.def_span(def),
253252
"`mir_const_qualif` should only be called on const fns and const items"

0 commit comments

Comments
 (0)