Skip to content

Commit bf50bd4

Browse files
committed
Removed integer suffixes in libsyntax crate
1 parent 4b87655 commit bf50bd4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/libsyntax/ast.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ pub enum ExprKind {
927927
Binary(BinOp, P<Expr>, P<Expr>),
928928
/// A unary operation (For example: `!x`, `*x`)
929929
Unary(UnOp, P<Expr>),
930-
/// A literal (For example: `1u8`, `"foo"`)
930+
/// A literal (For example: `1`, `"foo"`)
931931
Lit(P<Lit>),
932932
/// A cast (`foo as f64`)
933933
Cast(P<Expr>, P<Ty>),
@@ -1016,7 +1016,7 @@ pub enum ExprKind {
10161016

10171017
/// An array literal constructed from one repeated element.
10181018
///
1019-
/// For example, `[1u8; 5]`. The first expression is the element
1019+
/// For example, `[1; 5]`. The first expression is the element
10201020
/// to be repeated; the second is the number of times to repeat it.
10211021
Repeat(P<Expr>, P<Expr>),
10221022

@@ -1288,7 +1288,7 @@ pub enum LitKind {
12881288
Byte(u8),
12891289
/// A character literal (`'a'`)
12901290
Char(char),
1291-
/// An integer literal (`1u8`)
1291+
/// An integer literal (`1`)
12921292
Int(u64, LitIntType),
12931293
/// A float literal (`1f64` or `1E10f64`)
12941294
Float(InternedString, FloatTy),

src/libsyntax/errors/emitter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ fn stderr_isatty() -> bool {
663663
type DWORD = u32;
664664
type BOOL = i32;
665665
type HANDLE = *mut u8;
666-
const STD_ERROR_HANDLE: DWORD = -12i32 as DWORD;
666+
const STD_ERROR_HANDLE: DWORD = -12 as DWORD;
667667
extern "system" {
668668
fn GetStdHandle(which: DWORD) -> HANDLE;
669669
fn GetConsoleMode(hConsoleHandle: HANDLE,

src/libsyntax/print/pp.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ pub fn mk_printer<'a>(out: Box<io::Write+'a>, linewidth: usize) -> Printer<'a> {
168168
let n: usize = 3 * linewidth;
169169
debug!("mk_printer {}", linewidth);
170170
let token = vec![Token::Eof; n];
171-
let size = vec![0_isize; n];
172-
let scan_stack = vec![0_usize; n];
171+
let size = vec![0; n];
172+
let scan_stack = vec![0; n];
173173
Printer {
174174
out: out,
175175
buf_len: n,

0 commit comments

Comments
 (0)