Skip to content

Commit cd1848a

Browse files
committed
Register new snapshots
Lots of cruft to remove!
1 parent e2834a2 commit cd1848a

File tree

60 files changed

+45
-841
lines changed

Some content is hidden

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

60 files changed

+45
-841
lines changed

mk/main.mk

+1-5
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,7 @@ endif
131131

132132
ifdef CFG_ENABLE_DEBUGINFO
133133
$(info cfg: enabling debuginfo (CFG_ENABLE_DEBUGINFO))
134-
# FIXME: Re-enable -g in stage0 after new snapshot
135-
#CFG_RUSTC_FLAGS += -g
136-
RUSTFLAGS_STAGE1 += -g
137-
RUSTFLAGS_STAGE2 += -g
138-
RUSTFLAGS_STAGE3 += -g
134+
CFG_RUSTC_FLAGS += -g
139135
endif
140136

141137
ifdef SAVE_TEMPS

src/liballoc/arc.rs

-6
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@ use core::mem::{align_of_val, size_of_val};
8080
use core::intrinsics::abort;
8181
use core::mem;
8282
use core::ops::Deref;
83-
#[cfg(not(stage0))]
8483
use core::ops::CoerceUnsized;
8584
use core::ptr::{self, Shared};
86-
#[cfg(not(stage0))]
8785
use core::marker::Unsize;
8886
use core::hash::{Hash, Hasher};
8987
use core::{usize, isize};
@@ -135,8 +133,6 @@ unsafe impl<T: ?Sized + Sync + Send> Send for Arc<T> {}
135133
#[stable(feature = "rust1", since = "1.0.0")]
136134
unsafe impl<T: ?Sized + Sync + Send> Sync for Arc<T> {}
137135

138-
// remove cfg after new snapshot
139-
#[cfg(not(stage0))]
140136
#[unstable(feature = "coerce_unsized", issue = "27732")]
141137
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Arc<U>> for Arc<T> {}
142138

@@ -157,8 +153,6 @@ unsafe impl<T: ?Sized + Sync + Send> Send for Weak<T> {}
157153
#[stable(feature = "rust1", since = "1.0.0")]
158154
unsafe impl<T: ?Sized + Sync + Send> Sync for Weak<T> {}
159155

160-
// remove cfg after new snapshot
161-
#[cfg(not(stage0))]
162156
#[unstable(feature = "coerce_unsized", issue = "27732")]
163157
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Weak<U>> for Weak<T> {}
164158

src/liballoc/lib.rs

+2-17
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,8 @@
5656
//! The [`heap`](heap/index.html) module defines the low-level interface to the
5757
//! default global allocator. It is not compatible with the libc allocator API.
5858
59-
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
60-
#![cfg_attr(stage0, feature(custom_attribute))]
6159
#![crate_name = "alloc"]
6260
#![crate_type = "rlib"]
63-
#![cfg_attr(stage0, staged_api)]
6461
#![allow(unused_attributes)]
6562
#![unstable(feature = "alloc",
6663
reason = "this library is unlikely to be stabilized in its current \
@@ -72,19 +69,15 @@
7269
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
7370
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
7471
#![no_std]
75-
#![cfg_attr(not(stage0), needs_allocator)]
72+
#![needs_allocator]
7673

77-
#![cfg_attr(stage0, feature(rustc_attrs))]
78-
#![cfg_attr(stage0, feature(no_std))]
79-
#![cfg_attr(stage0, allow(unused_attributes))]
8074
#![feature(allocator)]
8175
#![feature(box_syntax)]
8276
#![feature(coerce_unsized)]
8377
#![feature(core_intrinsics)]
8478
#![feature(custom_attribute)]
8579
#![feature(fundamental)]
8680
#![feature(lang_items)]
87-
#![feature(nonzero)]
8881
#![feature(num_bits_bytes)]
8982
#![feature(optin_builtin_traits)]
9083
#![feature(placement_in_syntax)]
@@ -95,23 +88,15 @@
9588
#![feature(unboxed_closures)]
9689
#![feature(unique)]
9790
#![feature(unsafe_no_drop_flag, filling_drop)]
98-
// SNAP 1af31d4
99-
#![allow(unused_features)]
100-
// SNAP 1af31d4
101-
#![allow(unused_attributes)]
10291
#![feature(dropck_parametricity)]
10392
#![feature(unsize)]
10493
#![feature(drop_in_place)]
10594
#![feature(fn_traits)]
10695

107-
#![cfg_attr(stage0, feature(alloc_system))]
108-
#![cfg_attr(not(stage0), feature(needs_allocator))]
96+
#![feature(needs_allocator)]
10997

11098
#![cfg_attr(test, feature(test, rustc_private, box_heap))]
11199

112-
#[cfg(stage0)]
113-
extern crate alloc_system;
114-
115100
// Allow testing this library
116101

117102
#[cfg(test)]

src/liballoc/rc.rs

-6
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,9 @@ use core::fmt;
162162
use core::hash::{Hasher, Hash};
163163
use core::intrinsics::{assume, abort};
164164
use core::marker;
165-
#[cfg(not(stage0))]
166165
use core::marker::Unsize;
167166
use core::mem::{self, align_of_val, size_of_val, forget};
168167
use core::ops::Deref;
169-
#[cfg(not(stage0))]
170168
use core::ops::CoerceUnsized;
171169
use core::ptr::{self, Shared};
172170
use core::convert::From;
@@ -196,8 +194,6 @@ impl<T: ?Sized> !marker::Send for Rc<T> {}
196194
#[stable(feature = "rust1", since = "1.0.0")]
197195
impl<T: ?Sized> !marker::Sync for Rc<T> {}
198196

199-
// remove cfg after new snapshot
200-
#[cfg(not(stage0))]
201197
#[unstable(feature = "coerce_unsized", issue = "27732")]
202198
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Rc<U>> for Rc<T> {}
203199

@@ -723,8 +719,6 @@ impl<T: ?Sized> !marker::Send for Weak<T> {}
723719
#[stable(feature = "rust1", since = "1.0.0")]
724720
impl<T: ?Sized> !marker::Sync for Weak<T> {}
725721

726-
// remove cfg after new snapshot
727-
#[cfg(not(stage0))]
728722
#[unstable(feature = "coerce_unsized", issue = "27732")]
729723
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Weak<U>> for Weak<T> {}
730724

src/liballoc_jemalloc/lib.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![cfg_attr(stage0, feature(custom_attribute))]
1211
#![crate_name = "alloc_jemalloc"]
1312
#![crate_type = "rlib"]
14-
#![cfg_attr(stage0, staged_api)]
1513
#![no_std]
16-
#![cfg_attr(not(stage0), allocator)]
17-
#![cfg_attr(stage0, allow(improper_ctypes))]
14+
#![allocator]
1815
#![unstable(feature = "alloc_jemalloc",
1916
reason = "this library is unlikely to be stabilized in its current \
2017
form or name",
2118
issue = "27783")]
2219
#![feature(allocator)]
2320
#![feature(libc)]
2421
#![feature(staged_api)]
25-
#![cfg_attr(stage0, feature(no_std))]
2622

2723
extern crate libc;
2824

src/liballoc_system/lib.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![cfg_attr(stage0, feature(custom_attribute))]
1211
#![crate_name = "alloc_system"]
1312
#![crate_type = "rlib"]
14-
#![cfg_attr(stage0, staged_api)]
1513
#![no_std]
16-
#![cfg_attr(not(stage0), allocator)]
17-
#![cfg_attr(stage0, allow(improper_ctypes))]
14+
#![allocator]
1815
#![unstable(feature = "alloc_system",
1916
reason = "this library is unlikely to be stabilized in its current \
2017
form or name",
2118
issue = "27783")]
2219
#![feature(allocator)]
2320
#![feature(libc)]
2421
#![feature(staged_api)]
25-
#![cfg_attr(stage0, feature(no_std))]
2622

2723
extern crate libc;
2824

src/libarena/lib.rs

-8
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@
1919
//! arena but can only hold objects of a single type, and `Arena`, which is a
2020
//! more complex, slower arena which can hold objects of any type.
2121
22-
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
23-
#![cfg_attr(stage0, feature(custom_attribute))]
2422
#![crate_name = "arena"]
2523
#![unstable(feature = "rustc_private", issue = "27812")]
26-
#![cfg_attr(stage0, staged_api)]
2724
#![crate_type = "rlib"]
2825
#![crate_type = "dylib"]
2926
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -42,11 +39,6 @@
4239
#![feature(dropck_parametricity)]
4340
#![cfg_attr(test, feature(test))]
4441

45-
// SNAP 1af31d4
46-
#![allow(unused_features)]
47-
// SNAP 1af31d4
48-
#![allow(unused_attributes)]
49-
5042
extern crate alloc;
5143

5244
use std::cell::{Cell, RefCell};

src/libcollections/lib.rs

+4-16
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
//! See [std::collections](../std/collections) for a detailed discussion of
1414
//! collections in Rust.
1515
16-
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
17-
#![cfg_attr(stage0, feature(custom_attribute))]
1816
#![crate_name = "collections"]
19-
#![cfg_attr(stage0, staged_api)]
2017
#![crate_type = "rlib"]
2118
#![unstable(feature = "collections",
2219
reason = "library is unlikely to be stabilized with the current \
@@ -32,17 +29,14 @@
3229
#![allow(trivial_casts)]
3330
#![cfg_attr(test, allow(deprecated))] // rand
3431

35-
// SNAP 1af31d4
36-
#![allow(unused_features)]
37-
// SNAP 1af31d4
38-
#![allow(unused_attributes)]
39-
40-
#![cfg_attr(stage0, feature(rustc_attrs))]
41-
#![cfg_attr(stage0, allow(unused_attributes))]
4232
#![feature(alloc)]
4333
#![feature(box_patterns)]
4434
#![feature(box_syntax)]
35+
#![feature(clone_from_slice)]
4536
#![feature(core_intrinsics)]
37+
#![feature(decode_utf16)]
38+
#![feature(drop_in_place)]
39+
#![feature(dropck_parametricity)]
4640
#![feature(fmt_internals)]
4741
#![feature(fmt_radix)]
4842
#![feature(heap_api)]
@@ -53,7 +47,6 @@
5347
#![feature(oom)]
5448
#![feature(pattern)]
5549
#![feature(ptr_as_ref)]
56-
#![feature(ref_slice)]
5750
#![feature(slice_bytes)]
5851
#![feature(slice_patterns)]
5952
#![feature(staged_api)]
@@ -62,14 +55,9 @@
6255
#![feature(unboxed_closures)]
6356
#![feature(unicode)]
6457
#![feature(unique)]
65-
#![feature(dropck_parametricity)]
6658
#![feature(unsafe_no_drop_flag, filling_drop)]
67-
#![feature(decode_utf16)]
68-
#![feature(drop_in_place)]
69-
#![feature(clone_from_slice)]
7059
#![cfg_attr(test, feature(clone_from_slice, rand, test))]
7160

72-
#![cfg_attr(stage0, feature(no_std))]
7361
#![no_std]
7462

7563
extern crate rustc_unicode;

0 commit comments

Comments
 (0)