Skip to content

Commit 871338c

Browse files
committed
Merging master
2 parents 1ef34a5 + 0f949c2 commit 871338c

File tree

1,347 files changed

+17717
-14504
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,347 files changed

+17717
-14504
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@
4444
path = src/llvm-project
4545
url = https://github.com/rust-lang/llvm-project.git
4646
branch = rustc/8.0-2019-01-16
47+
[submodule "src/doc/embedded-book"]
48+
path = src/doc/embedded-book
49+
url = https://github.com/rust-embedded/book.git

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Matt Brubeck <[email protected]> <[email protected]>
155155
Matthew Auld <[email protected]>
156156
157157
Matthijs Hofstra <[email protected]>
158+
158159
Michael Williams <[email protected]>
159160
Michael Woerister <michaelwoerister@posteo> <michaelwoerister@gmail>
160161
Mickaël Raybaud-Roig <[email protected]> m-r-r <[email protected]>

Cargo.lock

Lines changed: 34 additions & 32 deletions
Large diffs are not rendered by default.

src/bootstrap/builder.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@ pub trait Step: 'static + Clone + Debug + PartialEq + Eq + Hash {
6060
/// Run this rule for all hosts without cross compiling.
6161
const ONLY_HOSTS: bool = false;
6262

63-
/// Primary function to execute this rule. Can call `builder.ensure(...)`
63+
/// Primary function to execute this rule. Can call `builder.ensure()`
6464
/// with other steps to run those.
6565
fn run(self, builder: &Builder) -> Self::Output;
6666

6767
/// When bootstrap is passed a set of paths, this controls whether this rule
6868
/// will execute. However, it does not get called in a "default" context
69-
/// when we are not passed any paths; in that case, make_run is called
69+
/// when we are not passed any paths; in that case, `make_run` is called
7070
/// directly.
7171
fn should_run(run: ShouldRun) -> ShouldRun;
7272

73-
/// Build up a "root" rule, either as a default rule or from a path passed
73+
/// Builds up a "root" rule, either as a default rule or from a path passed
7474
/// to us.
7575
///
7676
/// When path is `None`, we are executing in a context where no paths were
@@ -400,6 +400,7 @@ impl<'a> Builder<'a> {
400400
test::TheBook,
401401
test::UnstableBook,
402402
test::RustcBook,
403+
test::EmbeddedBook,
403404
test::Rustfmt,
404405
test::Miri,
405406
test::Clippy,
@@ -430,6 +431,7 @@ impl<'a> Builder<'a> {
430431
doc::RustByExample,
431432
doc::RustcBook,
432433
doc::CargoBook,
434+
doc::EmbeddedBook,
433435
doc::EditionGuide,
434436
),
435437
Kind::Dist => describe!(
@@ -646,7 +648,7 @@ impl<'a> Builder<'a> {
646648
add_lib_path(vec![self.rustc_libdir(compiler)], cmd);
647649
}
648650

649-
/// Get a path to the compiler specified.
651+
/// Gets a path to the compiler specified.
650652
pub fn rustc(&self, compiler: Compiler) -> PathBuf {
651653
if compiler.is_snapshot(self) {
652654
self.initial_rustc.clone()
@@ -657,7 +659,7 @@ impl<'a> Builder<'a> {
657659
}
658660
}
659661

660-
/// Get the paths to all of the compiler's codegen backends.
662+
/// Gets the paths to all of the compiler's codegen backends.
661663
fn codegen_backends(&self, compiler: Compiler) -> impl Iterator<Item = PathBuf> {
662664
fs::read_dir(self.sysroot_codegen_backends(compiler))
663665
.into_iter()
@@ -1017,8 +1019,7 @@ impl<'a> Builder<'a> {
10171019

10181020
cargo.env("RUSTC_VERBOSE", self.verbosity.to_string());
10191021

1020-
// in std, we want to avoid denying warnings for stage 0 as that makes cfg's painful.
1021-
if self.config.deny_warnings && !(mode == Mode::Std && stage == 0) {
1022+
if self.config.deny_warnings {
10221023
cargo.env("RUSTC_DENY_WARNINGS", "1");
10231024
}
10241025

src/bootstrap/cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ lazy_static! {
227227
pub static ref INTERNER: Interner = Interner::default();
228228
}
229229

230-
/// This is essentially a HashMap which allows storing any type in its input and
230+
/// This is essentially a `HashMap` which allows storing any type in its input and
231231
/// any type in its output. It is a write-once cache; values are never evicted,
232232
/// which means that references to the value can safely be returned from the
233-
/// get() method.
233+
/// `get()` method.
234234
#[derive(Debug)]
235235
pub struct Cache(
236236
RefCell<HashMap<

src/bootstrap/check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl Step for Rustc {
6666
});
6767
}
6868

69-
/// Build the compiler.
69+
/// Builds the compiler.
7070
///
7171
/// This will build the compiler for a particular stage of the build using
7272
/// the `compiler` targeting the `target` architecture. The artifacts

src/bootstrap/clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! Responsible for cleaning out a build directory of all old and stale
44
//! artifacts to prepare for a fresh build. Currently doesn't remove the
55
//! `build/cache` directory (download cache) or the `build/$target/llvm`
6-
//! directory unless the --all flag is present.
6+
//! directory unless the `--all` flag is present.
77
88
use std::fs;
99
use std::io::{self, ErrorKind};

src/bootstrap/compile.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl Step for Std {
4848
});
4949
}
5050

51-
/// Build the standard library.
51+
/// Builds the standard library.
5252
///
5353
/// This will build the standard library for a particular stage of the build
5454
/// using the `compiler` targeting the `target` architecture. The artifacts
@@ -269,7 +269,7 @@ impl Step for StartupObjects {
269269
});
270270
}
271271

272-
/// Build and prepare startup objects like rsbegin.o and rsend.o
272+
/// Builds and prepare startup objects like rsbegin.o and rsend.o
273273
///
274274
/// These are primarily used on Windows right now for linking executables/dlls.
275275
/// They don't require any library support as they're just plain old object
@@ -334,7 +334,7 @@ impl Step for Test {
334334
});
335335
}
336336

337-
/// Build libtest.
337+
/// Builds libtest.
338338
///
339339
/// This will build libtest and supporting libraries for a particular stage of
340340
/// the build using the `compiler` targeting the `target` architecture. The
@@ -455,7 +455,7 @@ impl Step for Rustc {
455455
});
456456
}
457457

458-
/// Build the compiler.
458+
/// Builds the compiler.
459459
///
460460
/// This will build the compiler for a particular stage of the build using
461461
/// the `compiler` targeting the `target` architecture. The artifacts

src/bootstrap/dist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl Step for Mingw {
342342
run.builder.ensure(Mingw { host: run.target });
343343
}
344344

345-
/// Build the `rust-mingw` installer component.
345+
/// Builds the `rust-mingw` installer component.
346346
///
347347
/// This contains all the bits and pieces to run the MinGW Windows targets
348348
/// without any extra installed software (e.g., we bundle gcc, libraries, etc).

src/bootstrap/doc.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ macro_rules! book {
6161
// adding a build step in `src/bootstrap/builder.rs`!
6262
book!(
6363
EditionGuide, "src/doc/edition-guide", "edition-guide", RustbookVersion::MdBook1;
64+
EmbeddedBook, "src/doc/embedded-book", "embedded-book", RustbookVersion::MdBook2;
6465
Nomicon, "src/doc/nomicon", "nomicon", RustbookVersion::MdBook1;
6566
Reference, "src/doc/reference", "reference", RustbookVersion::MdBook1;
6667
RustByExample, "src/doc/rust-by-example", "rust-by-example", RustbookVersion::MdBook1;
@@ -71,10 +72,6 @@ book!(
7172
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
7273
enum RustbookVersion {
7374
MdBook1,
74-
75-
/// Note: Currently no books use mdBook v2, but we want the option
76-
/// to be available
77-
#[allow(dead_code)]
7875
MdBook2,
7976
}
8077

@@ -262,7 +259,7 @@ impl Step for TheBook {
262259
});
263260
}
264261

265-
/// Build the book and associated stuff.
262+
/// Builds the book and associated stuff.
266263
///
267264
/// We need to build:
268265
///
@@ -614,7 +611,7 @@ impl Step for WhitelistedRustc {
614611
});
615612
}
616613

617-
/// Generate whitelisted compiler crate documentation.
614+
/// Generates whitelisted compiler crate documentation.
618615
///
619616
/// This will generate all documentation for crates that are whitelisted
620617
/// to be included in the standard documentation. This documentation is
@@ -686,7 +683,7 @@ impl Step for Rustc {
686683
});
687684
}
688685

689-
/// Generate compiler documentation.
686+
/// Generates compiler documentation.
690687
///
691688
/// This will generate all documentation for compiler and dependencies.
692689
/// Compiler documentation is distributed separately, so we make sure
@@ -787,7 +784,7 @@ impl Step for Rustdoc {
787784
});
788785
}
789786

790-
/// Generate compiler documentation.
787+
/// Generates compiler documentation.
791788
///
792789
/// This will generate all documentation for compiler and dependencies.
793790
/// Compiler documentation is distributed separately, so we make sure

0 commit comments

Comments
 (0)