Skip to content

Commit ddb46aa

Browse files
author
christopherdumas
committed
Fix ICE per #28172
1 parent f84d53c commit ddb46aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/check_const.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ impl<'a, 'tcx, 'v> Visitor<'v> for CheckCrateVisitor<'a, 'tcx> {
378378
"lower range bound must be less than or equal to upper");
379379
}
380380
None => {
381-
self.tcx.sess.span_bug(
382-
start.span, "literals of different types in range pat");
381+
self.tcx.sess.delay_span_bug(start.span,
382+
"non-constant path in constant expr");
383383
}
384384
}
385385
}

0 commit comments

Comments
 (0)