File tree 10 files changed +113
-12
lines changed
10 files changed +113
-12
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,14 @@ mod int_macros;
78
78
mod uint_macros;
79
79
80
80
#[ path = "num/int.rs" ] pub mod int;
81
+ #[ path = "num/isize.rs" ] pub mod isize;
81
82
#[ path = "num/i8.rs" ] pub mod i8;
82
83
#[ path = "num/i16.rs" ] pub mod i16;
83
84
#[ path = "num/i32.rs" ] pub mod i32;
84
85
#[ path = "num/i64.rs" ] pub mod i64;
85
86
86
87
#[ path = "num/uint.rs" ] pub mod uint;
88
+ #[ path = "num/usize.rs" ] pub mod usize;
87
89
#[ path = "num/u8.rs" ] pub mod u8;
88
90
#[ path = "num/u16.rs" ] pub mod u16;
89
91
#[ path = "num/u32.rs" ] pub mod u32;
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- //! Operations and constants for architecture-sized signed integers (`int` type)
11
+ //! Deprecated: replaced by `isize`.
12
+ //!
13
+ //! The rollout of the new type will gradually take place over the
14
+ //! alpha cycle along with the development of clearer conventions
15
+ //! around integer types.
12
16
13
- #![ stable]
14
- #![ doc( primitive = "int" ) ]
17
+ #![ deprecated = "replaced by isize" ]
15
18
16
19
#[ cfg( target_word_size = "32" ) ] int_module ! { int, 32 }
17
20
#[ cfg( target_word_size = "64" ) ] int_module ! { int, 64 }
Original file line number Diff line number Diff line change
1
+ // Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ //! Operations and constants for pointer-sized signed integers (`isize` type)
12
+ //!
13
+ //! This type was recently added to replace `int`. The rollout of the
14
+ //! new type will gradually take place over the alpha cycle along with
15
+ //! the development of clearer conventions around integer types.
16
+
17
+ #![ stable]
18
+ #![ doc( primitive = "isize" ) ]
19
+
20
+ #[ cfg( target_word_size = "32" ) ] int_module ! { isize , 32 }
21
+ #[ cfg( target_word_size = "64" ) ] int_module ! { isize , 64 }
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- //! Operations and constants for architecture-sized unsigned integers (`uint` type)
11
+ //! Deprecated: replaced by `usize`.
12
+ //!
13
+ //! The rollout of the new type will gradually take place over the
14
+ //! alpha cycle along with the development of clearer conventions
15
+ //! around integer types.
12
16
13
- #![ stable]
14
- #![ doc( primitive = "uint" ) ]
17
+ #![ deprecated = "replaced by usize" ]
15
18
16
19
uint_module ! { uint, int, :: int:: BITS }
Original file line number Diff line number Diff line change
1
+ // Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ //! Operations and constants for pointer-sized unsigned integers (`usize` type)
12
+ //!
13
+ //! This type was recently added to replace `uint`. The rollout of the
14
+ //! new type will gradually take place over the alpha cycle along with
15
+ //! the development of clearer conventions around integer types.
16
+
17
+ #![ stable]
18
+ #![ doc( primitive = "usize" ) ]
19
+
20
+ uint_module ! { usize , isize , :: isize :: BITS }
Original file line number Diff line number Diff line change @@ -201,12 +201,14 @@ mod int_macros;
201
201
mod uint_macros;
202
202
203
203
#[ path = "num/int.rs" ] pub mod int;
204
+ #[ path = "num/isize.rs" ] pub mod isize;
204
205
#[ path = "num/i8.rs" ] pub mod i8;
205
206
#[ path = "num/i16.rs" ] pub mod i16;
206
207
#[ path = "num/i32.rs" ] pub mod i32;
207
208
#[ path = "num/i64.rs" ] pub mod i64;
208
209
209
210
#[ path = "num/uint.rs" ] pub mod uint;
211
+ #[ path = "num/usize.rs" ] pub mod usize;
210
212
#[ path = "num/u8.rs" ] pub mod u8;
211
213
#[ path = "num/u16.rs" ] pub mod u16;
212
214
#[ path = "num/u32.rs" ] pub mod u32;
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- //! Operations and constants for architecture-sized signed integers (`int` type)
11
+ //! Deprecated: replaced by `isize`.
12
+ //!
13
+ //! The rollout of the new type will gradually take place over the
14
+ //! alpha cycle along with the development of clearer conventions
15
+ //! around integer types.
12
16
13
- #![ stable]
14
- #![ doc( primitive = "int" ) ]
17
+ #![ deprecated = "replaced by isize" ]
15
18
16
19
pub use core:: int:: { BITS , BYTES , MIN , MAX } ;
17
20
Original file line number Diff line number Diff line change
1
+ // Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ //! Operations and constants for pointer-sized signed integers (`isize` type)
12
+ //!
13
+ //! This type was recently added to replace `int`. The rollout of the
14
+ //! new type will gradually take place over the alpha cycle along with
15
+ //! the development of clearer conventions around integer types.
16
+
17
+ #![ stable]
18
+ #![ doc( primitive = "isize" ) ]
19
+
20
+ pub use core:: isize:: { BITS , BYTES , MIN , MAX } ;
21
+
22
+ int_module ! { isize }
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- //! Operations and constants for architecture-sized unsigned integers (`uint` type)
11
+ //! Deprecated: replaced by `usize`.
12
+ //!
13
+ //! The rollout of the new type will gradually take place over the
14
+ //! alpha cycle along with the development of clearer conventions
15
+ //! around integer types.
12
16
13
- #![ stable]
14
- #![ doc( primitive = "uint" ) ]
17
+ #![ deprecated = "replaced by usize" ]
15
18
16
19
pub use core:: uint:: { BITS , BYTES , MIN , MAX } ;
17
20
Original file line number Diff line number Diff line change
1
+ // Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ //! Operations and constants for pointer-sized unsigned integers (`usize` type)
12
+ //!
13
+ //! This type was recently added to replace `uint`. The rollout of the
14
+ //! new type will gradually take place over the alpha cycle along with
15
+ //! the development of clearer conventions around integer types.
16
+
17
+ #![ stable]
18
+ #![ doc( primitive = "usize" ) ]
19
+
20
+ pub use core:: usize:: { BITS , BYTES , MIN , MAX } ;
21
+
22
+ uint_module ! { usize }
You can’t perform that action at this time.
0 commit comments