Skip to content

Commit 1c16fa4

Browse files
committed
Auto merge of #56174 - pietroalbini:beta-rollup, r=alexcrichton
[beta] Rollup backports * #56163: [master] Backport 1.30.1 release notes * #56147: resolve: Fix some asserts in import validation * #56118: Update books for Rust 2018 * #56117: resolve: Make "empty import canaries" invisible from other crates * #56065: Replace the ICEing on const fn loops with an error * #56143: Issue 56128 segment id ice nightly * #56134: Fix clippy documentation links (first in #56156) r? @ghost
2 parents 4b3a1d9 + 659fcb9 commit 1c16fa4

File tree

33 files changed

+285
-112
lines changed

33 files changed

+285
-112
lines changed

RELEASES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ Cargo
7474
[cargo-rename-reference]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
7575
[const-reference]: https://doc.rust-lang.org/reference/items/functions.html#const-functions
7676

77+
Version 1.30.1 (2018-11-08)
78+
===========================
79+
80+
- [Fixed overflow ICE in rustdoc][54199]
81+
- [Cap Cargo progress bar width at 60 in MSYS terminals][cargo/6122]
82+
83+
[54199]: https://github.com/rust-lang/rust/pull/54199
84+
[cargo/6122]: https://github.com/rust-lang/cargo/pull/6122
7785

7886
Version 1.30.0 (2018-10-25)
7987
==========================

src/bootstrap/doc.rs

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -260,22 +260,31 @@ impl Step for TheBook {
260260
let compiler = self.compiler;
261261
let target = self.target;
262262
let name = self.name;
263-
// build book first edition
263+
264+
// build book
264265
builder.ensure(Rustbook {
265266
target,
266-
name: INTERNER.intern_string(format!("{}/first-edition", name)),
267+
name: INTERNER.intern_string(name.to_string()),
267268
});
268269

269-
// build book second edition
270+
// building older edition redirects
271+
272+
let source_name = format!("{}/first-edition", name);
270273
builder.ensure(Rustbook {
271274
target,
272-
name: INTERNER.intern_string(format!("{}/second-edition", name)),
275+
name: INTERNER.intern_string(source_name),
273276
});
274277

275-
// build book 2018 edition
278+
let source_name = format!("{}/second-edition", name);
276279
builder.ensure(Rustbook {
277280
target,
278-
name: INTERNER.intern_string(format!("{}/2018-edition", name)),
281+
name: INTERNER.intern_string(source_name),
282+
});
283+
284+
let source_name = format!("{}/2018-edition", name);
285+
builder.ensure(Rustbook {
286+
target,
287+
name: INTERNER.intern_string(source_name),
279288
});
280289

281290
// build the version info page and CSS
@@ -284,11 +293,6 @@ impl Step for TheBook {
284293
target,
285294
});
286295

287-
// build the index page
288-
let index = format!("{}/index.md", name);
289-
builder.info(&format!("Documenting book index ({})", target));
290-
invoke_rustdoc(builder, compiler, target, &index);
291-
292296
// build the redirect pages
293297
builder.info(&format!("Documenting book redirect pages ({})", target));
294298
for file in t!(fs::read_dir(builder.src.join("src/doc/book/redirects"))) {

src/bootstrap/tool.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ use util::{exe, add_lib_path};
2222
use compile;
2323
use native;
2424
use channel::GitInfo;
25+
use channel;
2526
use cache::Interned;
2627
use toolstate::ToolState;
2728

@@ -240,6 +241,7 @@ pub fn prepare_tool_cargo(
240241

241242
cargo.env("CFG_RELEASE_CHANNEL", &builder.config.channel);
242243
cargo.env("CFG_VERSION", builder.rust_version());
244+
cargo.env("CFG_RELEASE_NUM", channel::CFG_RELEASE_NUM);
243245

244246
let info = GitInfo::new(&builder.config, &dir);
245247
if let Some(sha) = info.sha() {

src/doc/book

Submodule book updated 438 files

src/doc/nomicon

src/doc/reference

src/doc/unstable-book/src/language-features/macro-literal-matcher.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ The tracking issue for this feature is: [#35625]
44

55
The RFC is: [rfc#1576].
66

7-
With this feature gate enabled, the [list of fragment specifiers][frags] gains one more entry:
7+
With this feature gate enabled, the [list of designators] gains one more entry:
88

99
* `literal`: a literal. Examples: 2, "string", 'c'
1010

1111
A `literal` may be followed by anything, similarly to the `ident` specifier.
1212

1313
[rfc#1576]: http://rust-lang.github.io/rfcs/1576-macros-literal-matcher.html
1414
[#35625]: https://github.com/rust-lang/rust/issues/35625
15-
[frags]: ../book/first-edition/macros.html#syntactic-requirements
15+
[list of designators]: ../reference/macros-by-example.html
1616

1717
------------------------

src/doc/unstable-book/src/language-features/plugin.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ of extensions. See `Registry::register_syntax_extension` and the
137137

138138
## Tips and tricks
139139

140-
Some of the [macro debugging tips](../book/first-edition/macros.html#debugging-macro-code) are applicable.
141-
142140
You can use `syntax::parse` to turn token trees into
143141
higher-level syntax elements like expressions:
144142

src/liballoc/rc.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
//!
4444
//! `Rc<T>` automatically dereferences to `T` (via the [`Deref`] trait),
4545
//! so you can call `T`'s methods on a value of type [`Rc<T>`][`Rc`]. To avoid name
46-
//! clashes with `T`'s methods, the methods of [`Rc<T>`][`Rc`] itself are [associated
47-
//! functions][assoc], called using function-like syntax:
46+
//! clashes with `T`'s methods, the methods of [`Rc<T>`][`Rc`] itself are associated
47+
//! functions, called using function-like syntax:
4848
//!
4949
//! ```
5050
//! use std::rc::Rc;
@@ -234,7 +234,6 @@
234234
//! [downgrade]: struct.Rc.html#method.downgrade
235235
//! [upgrade]: struct.Weak.html#method.upgrade
236236
//! [`None`]: ../../std/option/enum.Option.html#variant.None
237-
//! [assoc]: ../../book/first-edition/method-syntax.html#associated-functions
238237
//! [mutability]: ../../std/cell/index.html#introducing-mutability-inside-of-something-immutable
239238
240239
#![stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)