Skip to content

Commit 6310be4

Browse files
committed
Auto merge of #54601 - cuviper:prep-1.31, r=Mark-Simulacrum
Bump to 1.31.0 and bootstrap from 1.30 beta Closes #54594.
2 parents e0a1ab6 + d40b6cf commit 6310be4

File tree

74 files changed

+94
-571
lines changed

Some content is hidden

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

74 files changed

+94
-571
lines changed

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.30.0";
27+
pub const CFG_RELEASE_NUM: &str = "1.31.0";
2828

2929
pub struct GitInfo {
3030
inner: Option<Info>,

src/liballoc/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676

7777
#![cfg_attr(not(test), feature(fn_traits))]
7878
#![cfg_attr(not(test), feature(generator_trait))]
79-
#![cfg_attr(not(stage0), feature(nll))]
8079
#![cfg_attr(test, feature(test))]
8180

8281
#![feature(allocator_api)]
@@ -87,8 +86,7 @@
8786
#![feature(box_syntax)]
8887
#![feature(cfg_target_has_atomic)]
8988
#![feature(coerce_unsized)]
90-
#![cfg_attr(stage0, feature(const_fn))]
91-
#![cfg_attr(not(stage0), feature(min_const_fn))]
89+
#![feature(min_const_fn)]
9290
#![feature(core_intrinsics)]
9391
#![feature(custom_attribute)]
9492
#![feature(dropck_eyepatch)]
@@ -99,6 +97,7 @@
9997
#![feature(lang_items)]
10098
#![feature(libc)]
10199
#![feature(needs_allocator)]
100+
#![feature(nll)]
102101
#![feature(optin_builtin_traits)]
103102
#![feature(pattern)]
104103
#![feature(pin)]

src/liballoc/tests/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
#![feature(allocator_api)]
1212
#![feature(alloc_system)]
1313
#![feature(box_syntax)]
14-
#![cfg_attr(stage0, feature(const_fn))]
15-
#![cfg_attr(not(stage0), feature(min_const_fn))]
14+
#![feature(min_const_fn)]
1615
#![feature(drain_filter)]
1716
#![feature(exact_size_is_empty)]
1817
#![feature(pattern)]

src/liballoc_jemalloc/lib.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#![feature(core_intrinsics)]
1717
#![feature(libc)]
1818
#![feature(linkage)]
19-
#![cfg_attr(not(stage0), feature(nll))]
19+
#![feature(nll)]
2020
#![feature(staged_api)]
2121
#![feature(rustc_attrs)]
2222
#![cfg_attr(dummy_jemalloc, allow(dead_code, unused_extern_crates))]
@@ -90,15 +90,13 @@ mod contents {
9090
// ABI
9191

9292
#[rustc_std_internal_symbol]
93-
#[cfg_attr(stage0, no_mangle)]
9493
pub unsafe extern fn __rde_alloc(size: usize, align: usize) -> *mut u8 {
9594
let flags = align_to_flags(align, size);
9695
let ptr = mallocx(size as size_t, flags) as *mut u8;
9796
ptr
9897
}
9998

10099
#[rustc_std_internal_symbol]
101-
#[cfg_attr(stage0, no_mangle)]
102100
pub unsafe extern fn __rde_dealloc(ptr: *mut u8,
103101
size: usize,
104102
align: usize) {
@@ -107,7 +105,6 @@ mod contents {
107105
}
108106

109107
#[rustc_std_internal_symbol]
110-
#[cfg_attr(stage0, no_mangle)]
111108
pub unsafe extern fn __rde_realloc(ptr: *mut u8,
112109
_old_size: usize,
113110
align: usize,
@@ -118,7 +115,6 @@ mod contents {
118115
}
119116

120117
#[rustc_std_internal_symbol]
121-
#[cfg_attr(stage0, no_mangle)]
122118
pub unsafe extern fn __rde_alloc_zeroed(size: usize, align: usize) -> *mut u8 {
123119
let ptr = if align <= MIN_ALIGN && align <= size {
124120
calloc(size as size_t, 1) as *mut u8

src/liballoc_system/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#![feature(allocator_api)]
1919
#![feature(core_intrinsics)]
20-
#![cfg_attr(not(stage0), feature(nll))]
20+
#![feature(nll)]
2121
#![feature(staged_api)]
2222
#![feature(rustc_attrs)]
2323
#![cfg_attr(any(unix, target_os = "cloudabi", target_os = "redox"), feature(libc))]

src/libarena/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#![feature(alloc)]
2727
#![feature(core_intrinsics)]
2828
#![feature(dropck_eyepatch)]
29-
#![cfg_attr(not(stage0), feature(nll))]
29+
#![feature(nll)]
3030
#![feature(raw_vec_internals)]
3131
#![cfg_attr(test, feature(test))]
3232

src/libcore/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
#![feature(lang_items)]
9292
#![feature(link_llvm_intrinsics)]
9393
#![feature(never_type)]
94-
#![cfg_attr(not(stage0), feature(nll))]
94+
#![feature(nll)]
9595
#![feature(exhaustive_patterns)]
9696
#![feature(macro_at_most_once_rep)]
9797
#![feature(no_core)]

src/libcore/mem.rs

-28
Original file line numberDiff line numberDiff line change
@@ -285,19 +285,10 @@ pub fn forget<T>(t: T) {
285285
/// [alignment]: ./fn.align_of.html
286286
#[inline]
287287
#[stable(feature = "rust1", since = "1.0.0")]
288-
#[cfg(not(stage0))]
289288
pub const fn size_of<T>() -> usize {
290289
intrinsics::size_of::<T>()
291290
}
292291

293-
#[inline]
294-
#[stable(feature = "rust1", since = "1.0.0")]
295-
#[cfg(stage0)]
296-
/// Ceci n'est pas la documentation
297-
pub const fn size_of<T>() -> usize {
298-
unsafe { intrinsics::size_of::<T>() }
299-
}
300-
301292
/// Returns the size of the pointed-to value in bytes.
302293
///
303294
/// This is usually the same as `size_of::<T>()`. However, when `T` *has* no
@@ -343,20 +334,10 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize {
343334
#[inline]
344335
#[stable(feature = "rust1", since = "1.0.0")]
345336
#[rustc_deprecated(reason = "use `align_of` instead", since = "1.2.0")]
346-
#[cfg(not(stage0))]
347337
pub fn min_align_of<T>() -> usize {
348338
intrinsics::min_align_of::<T>()
349339
}
350340

351-
#[inline]
352-
#[stable(feature = "rust1", since = "1.0.0")]
353-
#[rustc_deprecated(reason = "use `align_of` instead", since = "1.2.0")]
354-
#[cfg(stage0)]
355-
/// Ceci n'est pas la documentation
356-
pub fn min_align_of<T>() -> usize {
357-
unsafe { intrinsics::min_align_of::<T>() }
358-
}
359-
360341
/// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to.
361342
///
362343
/// Every reference to a value of the type `T` must be a multiple of this number.
@@ -395,19 +376,10 @@ pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {
395376
/// ```
396377
#[inline]
397378
#[stable(feature = "rust1", since = "1.0.0")]
398-
#[cfg(not(stage0))]
399379
pub const fn align_of<T>() -> usize {
400380
intrinsics::min_align_of::<T>()
401381
}
402382

403-
#[inline]
404-
#[stable(feature = "rust1", since = "1.0.0")]
405-
#[cfg(stage0)]
406-
/// Ceci n'est pas la documentation
407-
pub const fn align_of<T>() -> usize {
408-
unsafe { intrinsics::min_align_of::<T>() }
409-
}
410-
411383
/// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to.
412384
///
413385
/// Every reference to a value of the type `T` must be a multiple of this number.

src/libcore/nonzero.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ use ops::CoerceUnsized;
1414

1515
/// A wrapper type for raw pointers and integers that will never be
1616
/// NULL or 0 that might allow certain optimizations.
17-
#[cfg_attr(stage0, lang = "non_zero")]
18-
#[cfg_attr(not(stage0), rustc_layout_scalar_valid_range_start(1))]
17+
#[rustc_layout_scalar_valid_range_start(1)]
1918
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
2019
#[repr(transparent)]
2120
pub(crate) struct NonZero<T>(pub(crate) T);

0 commit comments

Comments
 (0)