@@ -62,19 +62,19 @@ domain there shortly. We hope this will bring more attention to a great
62
62
resource, and you'll get a local copy with your local documentation.
63
63
64
64
Second, back in Rust 1.23, we talked about the change from Hoedown to
65
- pulldown-cmark. In Rust 1.25, pulldown-cmark is now the default rendering.
66
- After years, we have finally removed the last bit of C from rustdoc, and
67
- properly follow the CommonMark spec.
65
+ pulldown-cmark. In Rust 1.25, pulldown-cmark is now the default rendering. We
66
+ have finally removed the last bit of C from rustdoc, and now properly follow
67
+ the CommonMark spec.
68
68
69
69
Finally, in [ RFC 1358] , ` #[repr(align(x))] ` was accepted. In Rust
70
70
1.25, [ it is now stable] ! This attribute lets you set the [ alignment]
71
71
of your ` struct ` s:
72
72
73
73
``` rust
74
- struct NotAligned (i32 );
74
+ struct Number (i32 );
75
75
76
- assert_eq! (std :: mem :: align_of :: <NotAligned >(), 4 );
77
- assert_eq! (std :: mem :: size_of :: <NotAligned >(), 4 );
76
+ assert_eq! (std :: mem :: align_of :: <Number >(), 4 );
77
+ assert_eq! (std :: mem :: size_of :: <Number >(), 4 );
78
78
79
79
#[repr(align(16))]
80
80
struct Align16 (i32 );
@@ -93,7 +93,6 @@ can be very important!
93
93
[ it is now stable ] : https://github.com/rust-lang/rust/pull/47006
94
94
[ alignment ] : https://en.wikipedia.org/wiki/Data_structure_alignment
95
95
96
-
97
96
See the [ detailed release notes] [ notes ] for more.
98
97
99
98
### Library stabilizations
@@ -110,9 +109,9 @@ type for you!
110
109
` libcore ` has [ gained a ` time ` module] ( https://doc.rust-lang.org/core/time/ ) ,
111
110
containing the ` Duration ` type previously only available in ` libstd ` .
112
111
113
- Additionally, the ` new ` , ` from_secs ` , ` from_milis ` , ` from_micros ` , and ` from_nanos `
114
- functions associated with ` Duration ` were made ` const fn ` s, allowing them to be used
115
- to create a ` Duration ` as a constant expression.
112
+ Additionally, the ` from_secs ` , and ` from_milis ` functions associated with
113
+ ` Duration ` were made ` const fn ` s, allowing them to be used to create a
114
+ ` Duration ` as a constant expression.
116
115
117
116
See the [ detailed release notes] [ notes ] for more.
118
117
@@ -143,12 +142,13 @@ more](https://github.com/rust-lang/cargo/pull/5013).
143
142
144
143
Many users love ` cargo doc ` , a way to generate local documentation for their
145
144
Cargo projects. [ It's getting a huge speed
146
- bump] ( https://github.com/rust-lang/cargo/pull/5013 ) in this release, as now,
147
- it uses ` cargo check ` , rather than a full ` cargo build ` .
145
+ bump] ( https://github.com/rust-lang/cargo/pull/4976 ) in this release, as now,
146
+ it uses ` cargo check ` , rather than a full ` cargo build ` , so some scenarios
147
+ will get faster.
148
148
149
149
Additionally, checkouts of git dependencies [ should be a lot
150
150
faster] ( https://github.com/rust-lang/cargo/pull/4919 ) , thanks to the use of
151
- hard links where possible.
151
+ hard links when possible.
152
152
153
153
See the [ detailed release notes] [ notes ] for more.
154
154
0 commit comments