We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ee72ba commit be09626Copy full SHA for be09626
src/librustc/middle/check_const.rs
@@ -199,21 +199,6 @@ pub fn check_expr(v: &mut CheckCrateVisitor,
199
}
200
201
202
- match e.node {
203
- ExprLit(@codemap::Spanned {node: lit_int(v, t), _}) => {
204
- if (v as u64) > ast_util::int_ty_max(
205
- if t == ty_i { sess.targ_cfg.int_type } else { t }) {
206
- sess.span_err(e.span, "literal out of range for its type");
207
- }
208
209
- ExprLit(@codemap::Spanned {node: lit_uint(v, t), _}) => {
210
- if v > ast_util::uint_ty_max(
211
- if t == ty_u { sess.targ_cfg.uint_type } else { t }) {
212
213
214
215
- _ => ()
216
217
visit::walk_expr(v, e, is_const);
218
219
0 commit comments