From ddb46aaf88148f9b525eef43794f02f5247c0461 Mon Sep 17 00:00:00 2001 From: christopherdumas Date: Wed, 2 Sep 2015 15:48:21 -0700 Subject: [PATCH] Fix ICE per #28172 --- src/librustc/middle/check_const.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/middle/check_const.rs b/src/librustc/middle/check_const.rs index ad9cbfcf4c0..37e14428176 100644 --- a/src/librustc/middle/check_const.rs +++ b/src/librustc/middle/check_const.rs @@ -378,8 +378,8 @@ fn visit_pat(&mut self, p: &hir::Pat) { "lower range bound must be less than or equal to upper"); } None => { - self.tcx.sess.span_bug( - start.span, "literals of different types in range pat"); + self.tcx.sess.delay_span_bug(start.span, + "non-constant path in constant expr"); } } } -- 2.44.0