Skip to content

Commit 97c3bee

Browse files
committed
Edits from comments
1 parent 9860ce4 commit 97c3bee

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

_posts/2017-06-08-Rust-1.18.md

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ appropriate page on our website, and check out the [detailed release notes for
2222

2323
### What's in 1.18.0 stable
2424

25-
Rust 1.18.0 is similar to many of our releases: no big bombshells, just a number
25+
Rust 1.18.0 is similar to many of our releases: no big surprises, just a number
2626
of improvements, cleanups, and new features.
2727

2828
One of the largest changes is a long time coming: core team members Carol
@@ -31,16 +31,15 @@ Programming Language", the official book about Rust. It's being [written openly
3131
on GitHub](https://github.com/rust-lang/book), and has over a hundred
3232
contributors in total. This release [includes the first draft of the second
3333
edition in our online documentation](https://doc.rust-lang.org/stable/book/).
34-
19 out of 20 chapters have a draft; the draft of chapter 20 will land in the
35-
Rust 1.19. When the book is done, a print version will be made available through
36-
[No Starch Press](https://www.nostarch.com/Rust), if you'd like a paper copy.
37-
While first drafts of the chapters are available, we're still working with the
38-
editors at No Starch to improve the text, so there's more to do, but we wanted
34+
19 out of 20 chapters have a draft; the draft of chapter 20 will land in Rust
35+
1.19. When the book is done, a print version will be made available through [No
36+
Starch Press](https://www.nostarch.com/Rust), if you'd like a paper copy. We're
37+
still working with the editors at No Starch to improve the text, but we wanted
3938
to start getting a wider audience now. The new edition is a complete re-write
4039
from the ground up, using the last two years of knowledge we've gained from
4140
teaching people Rust. You'll find brand-new explanations for a lot of Rust's
4241
core concepts, new projects to build, and all kinds of other good stuff. Please
43-
check it out and let us know what you think!
42+
check it out and [let us know what you think](https://github.com/rust-lang/book/issues/new)!
4443

4544
As for the language itself, an old feature has learned some new tricks: the
4645
`pub` keyword has been expanded a bit. Experienced Rustaceans will know that
@@ -61,12 +60,14 @@ users. This was *possible* with the current module system, but often very awkwar
6160
You can also specify a path, like this:
6261

6362
```rust
64-
pub(a::b::c) foo;
63+
pub(in a::b::c) foo;
6564
```
6665

6766
This means "usable within the hierarchy of `a::b::c`, but not elsewhere." This
6867
feature was defined in [RFC
6968
1422](https://github.com/rust-lang/rfcs/blob/master/text/1422-pub-restricted.md)
69+
and [is documented in the
70+
reference](https://doc.rust-lang.org/stable/reference/visibility-and-privacy.html#pubin-path-pubcrate-pubsuper-and-pubself).
7071

7172
For our Windows users, Rust 1.18.0 has [a new attribute,
7273
`#![windows_subsystem]`](https://github.com/rust-lang/rust/pull/40870). It
@@ -147,16 +148,18 @@ to use a `#[repr]` attribute to guarantee a particular layout if you rely on it.
147148

148149
We've been planning on moving `rustdoc` to use a CommonMark compliant markdown
149150
parser for a long time now. However, just switching over can introduce
150-
regressions where the CommonMark spec differs from our existing parser, Hoedown.
151-
As part of the transition plan, [a new flag has been added to
152-
`rustdoc`](https://github.com/rust-lang/rust/pull/40338), `--enable-commonmark`.
153-
This will use the new parser instead of the old one. Please give it a try! There's
154-
no scenario we know of where tweaking your markdown gets identical results on both
155-
parsers.
156-
157-
Finally, compiling `rustc` itself is now [15%-20% faster](https://github.com/rust-lang/rust/pull/41469). Each commit message in this PR
158-
goes over the details, but the short of it is that there were some inefficient
159-
things, and now they've been cleaned up.
151+
regressions where the CommonMark spec differs from our existing parser,
152+
Hoedown. As part of the transition plan, [a new flag has been added to
153+
`rustdoc`](https://github.com/rust-lang/rust/pull/40338),
154+
`--enable-commonmark`. This will use the new parser instead of the old one.
155+
Please give it a try! As far as we know, both parsers will produce identical
156+
results, but we'd be interested in knowing if you find a scenario where the
157+
rendered results differ!
158+
159+
Finally, compiling `rustc` itself is now [15%-20%
160+
faster](https://github.com/rust-lang/rust/pull/41469). Each commit message in
161+
this PR goes over the details, but the short of it is that there were some
162+
inefficient things, and now they've been cleaned up.
160163

161164
See the [detailed release notes][notes] for more.
162165

@@ -166,7 +169,7 @@ Seven new APIs were stabilized this release:
166169

167170
- [`Child::try_wait`] is a non-blocking form of `Child::wait`.
168171
- [`HashMap::retain`] and [`HashSet::retain`] bring the `retain` API `Vec<T>` has to these two hash data structures.
169-
- [`PeekMut::pop`] lets you pop stuff off of a `BinaryHeap<T>`
172+
- [`PeekMut::pop`] lets you pop the top element from a `BinaryHeap<T>` after you've already peeked at it without needing to reorder the heap a second time.
170173
- [`TcpStream::peek`], [`UdpSocket::peek`], [`UdpSocket::peek_from`] let you peek at a stream or socket.
171174

172175
[`Child::try_wait`]: https://doc.rust-lang.org/std/process/struct.Child.html#method.try_wait
@@ -184,7 +187,7 @@ See the [detailed release notes][notes] for more.
184187
Cargo has [added support](https://github.com/rust-lang/cargo/pull/3842) for the Pijul VCS,
185188
which is written in Rust. `cargo new my-awesome-project --vcs=pijul` will get you going!
186189

187-
To suppliment the `--all` flag, Cargo now has [several new
190+
To supplement the `--all` flag, Cargo now has [several new
188191
flags](https://github.com/rust-lang/cargo/pull/3901) such as `--bins`,
189192
`--examples`, `--tests`, and `--benches`, which will let you build all programs of
190193
that type.

0 commit comments

Comments
 (0)