From 77e6573929702731bc0bd2c41724e6a587c7f268 Mon Sep 17 00:00:00 2001 From: Lindsey Kuper Date: Thu, 14 Jun 2012 19:41:40 -0700 Subject: Further work on integer literal suffix inference (#1425) In this commit: * Change the lit_int_unsuffixed AST node to not carry a type, since it doesn't need one * Don't print "(unsuffixed)" when pretty-printing unsuffixed integer literals * Just print "I" instead of "(integral)" for integral type variables * Set up trans to use the information that will be gathered during typeck to construct the appropriate constants for unsuffixed int literals * Add logic for handling int_ty_sets in typeck::infer * Clean up unnecessary code in typeck::infer * Add missing mk_ functions to middle::ty * Add ty_var_integral to a few of the type utility functions it was missing from in middle::ty --- src/libsyntax/parse/classify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse/classify.rs') diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index aff0334a946..a3d55df320b 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -54,7 +54,7 @@ fn ends_in_lit_int(ex: @ast::expr) -> bool { ast::expr_lit(node) { alt node { @{node: ast::lit_int(_, ast::ty_i), _} | - @{node: ast::lit_int_unsuffixed(_, ast::ty_i), _} + @{node: ast::lit_int_unsuffixed(_), _} { true } _ { false } } -- cgit 1.4.1-3-g733a5