Skip to content

Commit 2354697

Browse files
author
mejrs
committed
Fix rebase :(
1 parent 139bc67 commit 2354697

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_mir_build/src/thir/pattern

1 file changed

+1
-1
lines changed

compiler/rustc_mir_build/src/thir/pattern/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ impl<'a, 'tcx> PatCtxt<'a, 'tcx> {
566566
_ => bug!("Expected ConstKind::Param"),
567567
},
568568
mir::ConstantKind::Val(_, _) => self.const_to_pat(value, id, span, false).kind,
569-
mir::ConstKind::Unevaluated(_) => {
569+
mir::ConstantKind::Unevaluated(..) => {
570570
// If we land here it means the const can't be evaluated because it's `TooGeneric`.
571571
self.tcx.sess.emit_err(ConstPatternDependsOnGenericParameter { span });
572572
return PatKind::Wild;

0 commit comments

Comments
 (0)