Skip to content

Commit 72176cf

Browse files
committed
Auto merge of #47141 - alexcrichton:bump-bootstrap, r=alexcrichton
Bump to 1.25.0 * Bump the release version to 1.25 * Bump the bootstrap compiler to the recent beta * Allow using unstable rustdoc features on beta - this fix has been applied to the beta branch but needed to go to the master branch as well.
2 parents a9a03d9 + fcdca7f commit 72176cf

File tree

25 files changed

+46
-62
lines changed

25 files changed

+46
-62
lines changed

src/bootstrap/builder.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ impl<'a> Builder<'a> {
419419
.env("RUSTC_LIBDIR", self.sysroot_libdir(compiler, self.build.build))
420420
.env("CFG_RELEASE_CHANNEL", &self.build.config.channel)
421421
.env("RUSTDOC_REAL", self.rustdoc(host))
422-
.env("RUSTDOC_CRATE_VERSION", self.build.rust_version());
422+
.env("RUSTDOC_CRATE_VERSION", self.build.rust_version())
423+
.env("RUSTC_BOOTSTRAP", "1");
423424
if let Some(linker) = self.build.linker(host) {
424425
cmd.env("RUSTC_TARGET_LINKER", linker);
425426
}
@@ -483,8 +484,8 @@ impl<'a> Builder<'a> {
483484
} else {
484485
PathBuf::from("/path/to/nowhere/rustdoc/not/required")
485486
})
486-
.env("TEST_MIRI", self.config.test_miri.to_string());
487-
487+
.env("TEST_MIRI", self.config.test_miri.to_string())
488+
.env("RUSTC_ERROR_METADATA_DST", self.extended_error_dir());
488489
if let Some(n) = self.config.rust_codegen_units {
489490
cargo.env("RUSTC_CODEGEN_UNITS", n.to_string());
490491
}

src/bootstrap/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use Build;
2424
use config::Config;
2525

2626
// The version number
27-
pub const CFG_RELEASE_NUM: &str = "1.24.0";
27+
pub const CFG_RELEASE_NUM: &str = "1.25.0";
2828

2929
// An optional number to put after the label, e.g. '.2' -> '-beta.2'
3030
// Be sure to make this starts with a dot to conform to semver pre-release

src/bootstrap/check.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,8 @@ impl Step for ErrorIndex {
975975
build.run(builder.tool_cmd(Tool::ErrorIndex)
976976
.arg("markdown")
977977
.arg(&output)
978-
.env("CFG_BUILD", &build.build));
978+
.env("CFG_BUILD", &build.build)
979+
.env("RUSTC_ERROR_METADATA_DST", build.extended_error_dir()));
979980

980981
markdown_test(builder, compiler, &output);
981982
}

src/bootstrap/doc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,8 @@ impl Step for ErrorIndex {
671671
index.arg(out.join("error-index.html"));
672672

673673
// FIXME: shouldn't have to pass this env var
674-
index.env("CFG_BUILD", &build.build);
674+
index.env("CFG_BUILD", &build.build)
675+
.env("RUSTC_ERROR_METADATA_DST", build.extended_error_dir());
675676

676677
build.run(&mut index);
677678
}

src/bootstrap/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,11 @@ impl Build {
718718
self.config.python.as_ref().unwrap()
719719
}
720720

721+
/// Temporary directory that extended error information is emitted to.
722+
fn extended_error_dir(&self) -> PathBuf {
723+
self.out.join("tmp/extended-error-metadata")
724+
}
725+
721726
/// Tests whether the `compiler` compiling for `target` should be forced to
722727
/// use a stage1 compiler instead.
723728
///

src/bootstrap/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ pub fn symlink_dir(src: &Path, dest: &Path) -> io::Result<()> {
315315
let mut data = [0u8; MAXIMUM_REPARSE_DATA_BUFFER_SIZE];
316316
let db = data.as_mut_ptr()
317317
as *mut REPARSE_MOUNTPOINT_DATA_BUFFER;
318-
let buf = &mut (*db).ReparseTarget as *mut _;
318+
let buf = &mut (*db).ReparseTarget as *mut u16;
319319
let mut i = 0;
320320
// FIXME: this conversion is very hacky
321321
let v = br"\??\";

src/ci/docker/x86_64-gnu-incremental/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ RUN sh /scripts/sccache.sh
1919
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu
2020
ENV RUSTFLAGS -Zincremental=/tmp/rust-incr-cache
2121
ENV RUST_CHECK_TARGET check
22+
ENV CARGO_INCREMENTAL 0

src/libcore/intrinsics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,5 @@ extern "rust-intrinsic" {
13901390

13911391
/// Emits a `!nontemporal` store according to LLVM (see their docs).
13921392
/// Probably will never become stable.
1393-
#[cfg(not(stage0))]
13941393
pub fn nontemporal_store<T>(ptr: *mut T, val: T);
13951394
}

src/librustc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,5 @@ fn noop() {
175175

176176

177177
// Build the diagnostics array at the end so that the metadata includes error use sites.
178+
#[cfg(not(stage0))] // remove after the next snapshot
178179
__build_diagnostic_array! { librustc, DIAGNOSTICS }

src/librustc/session/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ impl Session {
642642
IncrCompSession::Active { ref session_directory, .. } => {
643643
session_directory.clone()
644644
}
645+
IncrCompSession::InvalidBecauseOfErrors { .. } => return,
645646
_ => bug!("Trying to invalidate IncrCompSession `{:?}`",
646647
*incr_comp_session),
647648
};

0 commit comments

Comments
 (0)