Skip to content

Commit 53fd0c5

Browse files
committed
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.
1 parent b65f0be commit 53fd0c5

File tree

8 files changed

+9
-53
lines changed

8 files changed

+9
-53
lines changed

src/bootstrap/builder.rs

+2-1
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
}

src/bootstrap/channel.rs

+1-1
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/util.rs

+1-1
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

+1
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

-1
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/libstd/rt.rs

+2-47
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub use panicking::{begin_panic, begin_panic_fmt, update_panic_count};
2828

2929
// To reduce the generated code of the new `lang_start`, this function is doing
3030
// the real work.
31-
#[cfg(not(any(test, stage0)))]
31+
#[cfg(not(test))]
3232
fn lang_start_internal(main: &(Fn() -> i32 + Sync + ::panic::RefUnwindSafe),
3333
argc: isize, argv: *const *const u8) -> isize {
3434
use panic;
@@ -66,55 +66,10 @@ fn lang_start_internal(main: &(Fn() -> i32 + Sync + ::panic::RefUnwindSafe),
6666
}
6767
}
6868

69-
#[cfg(not(any(test, stage0)))]
69+
#[cfg(not(test))]
7070
#[lang = "start"]
7171
fn lang_start<T: ::termination::Termination + 'static>
7272
(main: fn() -> T, argc: isize, argv: *const *const u8) -> isize
7373
{
7474
lang_start_internal(&move || main().report(), argc, argv)
7575
}
76-
77-
#[cfg(all(not(test), stage0))]
78-
#[lang = "start"]
79-
fn lang_start(main: fn(), argc: isize, argv: *const *const u8) -> isize {
80-
use panic;
81-
use sys;
82-
use sys_common;
83-
use sys_common::thread_info;
84-
use thread::Thread;
85-
#[cfg(not(feature = "backtrace"))]
86-
use mem;
87-
88-
sys::init();
89-
90-
let failed = unsafe {
91-
let main_guard = sys::thread::guard::init();
92-
sys::stack_overflow::init();
93-
94-
// Next, set up the current Thread with the guard information we just
95-
// created. Note that this isn't necessary in general for new threads,
96-
// but we just do this to name the main thread and to give it correct
97-
// info about the stack bounds.
98-
let thread = Thread::new(Some("main".to_owned()));
99-
thread_info::set(main_guard, thread);
100-
101-
// Store our args if necessary in a squirreled away location
102-
sys::args::init(argc, argv);
103-
104-
// Let's run some code!
105-
#[cfg(feature = "backtrace")]
106-
let res = panic::catch_unwind(|| {
107-
::sys_common::backtrace::__rust_begin_short_backtrace(main)
108-
});
109-
#[cfg(not(feature = "backtrace"))]
110-
let res = panic::catch_unwind(mem::transmute::<_, fn()>(main));
111-
sys_common::cleanup();
112-
res.is_err()
113-
};
114-
115-
if failed {
116-
101
117-
} else {
118-
0
119-
}
120-
}

src/libstd/termination.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mod exit {
2929
///
3030
/// The default implementations are returning `libc::EXIT_SUCCESS` to indicate
3131
/// a successful execution. In case of a failure, `libc::EXIT_FAILURE` is returned.
32-
#[cfg_attr(not(any(stage0, test)), lang = "termination")]
32+
#[cfg_attr(not(test), lang = "termination")]
3333
#[unstable(feature = "termination_trait", issue = "43301")]
3434
#[rustc_on_unimplemented =
3535
"`main` can only return types that implement {Termination}, not `{Self}`"]

src/stage0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# source tarball for a stable release you'll likely see `1.x.0` for rustc and
1313
# `0.x.0` for Cargo where they were released on `date`.
1414

15-
date: 2017-11-21
15+
date: 2018-01-02
1616
rustc: beta
1717
cargo: beta
1818

0 commit comments

Comments
 (0)