]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/check_const.rs
Fix ICE per #28172
[rust.git] / 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");
                     }
                 }
             }