This commit is contained in:
christopherdumas 2015-09-02 15:48:21 -07:00
parent f84d53ca0a
commit ddb46aaf88

View File

@ -378,8 +378,8 @@ impl<'a, 'tcx, 'v> Visitor<'v> for CheckCrateVisitor<'a, 'tcx> {
"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");
}
}
}