]> git.lizzy.rs Git - rust.git/commitdiff
Fix ICE per #28172
authorchristopherdumas <christopherdumas@me.com>
Wed, 2 Sep 2015 22:48:21 +0000 (15:48 -0700)
committerchristopherdumas <christopherdumas@me.com>
Fri, 11 Sep 2015 00:11:51 +0000 (17:11 -0700)
src/librustc/middle/check_const.rs

index ad9cbfcf4c055d617aa05dd950b85488834d5c3f..37e144281760fd2a173ceaa9e6771fae53674fe8 100644 (file)
@@ -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");
                     }
                 }
             }