File tree Expand file tree Collapse file tree 11 files changed +114
-13
lines changed Expand file tree Collapse file tree 11 files changed +114
-13
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 73a25f55ad748b4d3516417c711b99ce446591af
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
5
- refs/heads/try: b53e9f17d336bc3550ab2c5eda503bd9e719e94f
5
+ refs/heads/try: 7deb9abd1b45f3e56ca6b13432866ae89886f21f
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
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