Skip to content

Commit f243bef

Browse files
committed
Simplify a pattern.
1 parent b5a0503 commit f243bef

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
@@ -245,8 +245,7 @@ fn mir_const_qualif(tcx: TyCtxt<'_>, def: LocalDefId) -> ConstQualifs {
245245

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

0 commit comments

Comments
 (0)