Skip to content

Commit 118860a

Browse files
committed
Auto merge of #75947 - pietroalbini:bootstrap-update, r=Mark-Simulacrum
Bump version to 1.48 and update cfg(bootstrap)s r? @Mark-Simulacrum
2 parents f7cbb7a + 1b6590c commit 118860a

File tree

17 files changed

+28
-29
lines changed

17 files changed

+28
-29
lines changed

library/core/src/array/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ macro_rules! array_impl_default {
362362

363363
array_impl_default! {32, T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T}
364364

365-
#[cfg(not(bootstrap))]
366365
#[lang = "array"]
367366
impl<T, const N: usize> [T; N] {
368367
/// Returns an array of the same size as `self`, with function `f` applied to each element

library/core/src/convert/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ pub trait Into<T>: Sized {
385385
))]
386386
pub trait From<T>: Sized {
387387
/// Performs the conversion.
388-
#[cfg_attr(not(bootstrap), lang = "from")]
388+
#[lang = "from"]
389389
#[stable(feature = "rust1", since = "1.0.0")]
390390
fn from(_: T) -> Self;
391391
}

library/core/src/future/future.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub trait Future {
9696
/// [`Context`]: ../task/struct.Context.html
9797
/// [`Waker`]: ../task/struct.Waker.html
9898
/// [`Waker::wake`]: ../task/struct.Waker.html#method.wake
99-
#[cfg_attr(not(bootstrap), lang = "poll")]
99+
#[lang = "poll"]
100100
#[stable(feature = "futures_api", since = "1.36.0")]
101101
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>;
102102
}

library/core/src/future/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ unsafe impl Sync for ResumeTy {}
5353
/// This function returns a `GenFuture` underneath, but hides it in `impl Trait` to give
5454
/// better error messages (`impl Future` rather than `GenFuture<[closure.....]>`).
5555
// This is `const` to avoid extra errors after we recover from `const async fn`
56-
#[cfg_attr(not(bootstrap), lang = "from_generator")]
56+
#[lang = "from_generator"]
5757
#[doc(hidden)]
5858
#[unstable(feature = "gen_future", issue = "50547")]
5959
#[inline]
@@ -86,7 +86,7 @@ where
8686
GenFuture(gen)
8787
}
8888

89-
#[cfg_attr(not(bootstrap), lang = "get_context")]
89+
#[lang = "get_context"]
9090
#[doc(hidden)]
9191
#[unstable(feature = "gen_future", issue = "50547")]
9292
#[inline]

library/core/src/iter/traits/collect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ pub trait IntoIterator {
235235
/// assert_eq!(Some(3), iter.next());
236236
/// assert_eq!(None, iter.next());
237237
/// ```
238-
#[cfg_attr(not(bootstrap), lang = "into_iter")]
238+
#[lang = "into_iter"]
239239
#[stable(feature = "rust1", since = "1.0.0")]
240240
fn into_iter(self) -> Self::IntoIter;
241241
}

library/core/src/iter/traits/iterator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub trait Iterator {
130130
/// assert_eq!(None, iter.next());
131131
/// assert_eq!(None, iter.next());
132132
/// ```
133-
#[cfg_attr(not(bootstrap), lang = "next")]
133+
#[lang = "next"]
134134
#[stable(feature = "rust1", since = "1.0.0")]
135135
fn next(&mut self) -> Option<Self::Item>;
136136

library/core/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
#![feature(custom_inner_attributes)]
9999
#![feature(decl_macro)]
100100
#![feature(doc_cfg)]
101-
#![cfg_attr(not(bootstrap), feature(doc_spotlight))]
101+
#![feature(doc_spotlight)]
102102
#![feature(duration_consts_2)]
103103
#![feature(extern_types)]
104104
#![feature(fundamental)]

library/core/src/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ mod impls {
708708
pub trait DiscriminantKind {
709709
/// The type of the discriminant, which must satisfy the trait
710710
/// bounds required by `mem::Discriminant`.
711-
#[cfg_attr(not(bootstrap), lang = "discriminant_type")]
711+
#[lang = "discriminant_type"]
712712
type Discriminant: Clone + Copy + Debug + Eq + PartialEq + Hash + Send + Sync + Unpin;
713713
}
714714

library/core/src/ops/range.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use crate::hash::Hash;
3636
/// ```
3737
///
3838
/// [slicing index]: crate::slice::SliceIndex
39-
#[cfg_attr(not(bootstrap), lang = "RangeFull")]
39+
#[lang = "RangeFull"]
4040
#[doc(alias = "..")]
4141
#[derive(Copy, Clone, Default, PartialEq, Eq, Hash)]
4242
#[stable(feature = "rust1", since = "1.0.0")]
@@ -69,7 +69,7 @@ impl fmt::Debug for RangeFull {
6969
/// assert_eq!(arr[1.. 3], [ 1,2 ]); // Range
7070
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
7171
/// ```
72-
#[cfg_attr(not(bootstrap), lang = "Range")]
72+
#[lang = "Range"]
7373
#[doc(alias = "..")]
7474
#[derive(Clone, Default, PartialEq, Eq, Hash)] // not Copy -- see #27186
7575
#[stable(feature = "rust1", since = "1.0.0")]
@@ -172,7 +172,7 @@ impl<Idx: PartialOrd<Idx>> Range<Idx> {
172172
/// assert_eq!(arr[1.. 3], [ 1,2 ]);
173173
/// assert_eq!(arr[1..=3], [ 1,2,3 ]);
174174
/// ```
175-
#[cfg_attr(not(bootstrap), lang = "RangeFrom")]
175+
#[lang = "RangeFrom"]
176176
#[doc(alias = "..")]
177177
#[derive(Clone, PartialEq, Eq, Hash)] // not Copy -- see #27186
178178
#[stable(feature = "rust1", since = "1.0.0")]
@@ -253,7 +253,7 @@ impl<Idx: PartialOrd<Idx>> RangeFrom<Idx> {
253253
/// ```
254254
///
255255
/// [slicing index]: crate::slice::SliceIndex
256-
#[cfg_attr(not(bootstrap), lang = "RangeTo")]
256+
#[lang = "RangeTo"]
257257
#[doc(alias = "..")]
258258
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
259259
#[stable(feature = "rust1", since = "1.0.0")]
@@ -322,7 +322,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
322322
/// assert_eq!(arr[1.. 3], [ 1,2 ]);
323323
/// assert_eq!(arr[1..=3], [ 1,2,3 ]); // RangeInclusive
324324
/// ```
325-
#[cfg_attr(not(bootstrap), lang = "RangeInclusive")]
325+
#[lang = "RangeInclusive"]
326326
#[doc(alias = "..=")]
327327
#[derive(Clone, PartialEq, Eq, Hash)] // not Copy -- see #27186
328328
#[stable(feature = "inclusive_range", since = "1.26.0")]
@@ -354,7 +354,7 @@ impl<Idx> RangeInclusive<Idx> {
354354
///
355355
/// assert_eq!(3..=5, RangeInclusive::new(3, 5));
356356
/// ```
357-
#[cfg_attr(not(bootstrap), lang = "range_inclusive_new")]
357+
#[lang = "range_inclusive_new"]
358358
#[stable(feature = "inclusive_range_methods", since = "1.27.0")]
359359
#[inline]
360360
#[rustc_promotable]
@@ -543,7 +543,7 @@ impl<Idx: PartialOrd<Idx>> RangeInclusive<Idx> {
543543
/// ```
544544
///
545545
/// [slicing index]: crate::slice::SliceIndex
546-
#[cfg_attr(not(bootstrap), lang = "RangeToInclusive")]
546+
#[lang = "RangeToInclusive"]
547547
#[doc(alias = "..=")]
548548
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
549549
#[stable(feature = "inclusive_range", since = "1.26.0")]

library/core/src/ops/try.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ pub trait Try {
4343
/// in the return type of the enclosing scope (which must itself implement
4444
/// `Try`). Specifically, the value `X::from_error(From::from(e))`
4545
/// is returned, where `X` is the return type of the enclosing function.
46-
#[cfg_attr(not(bootstrap), lang = "into_result")]
46+
#[lang = "into_result"]
4747
#[unstable(feature = "try_trait", issue = "42327")]
4848
fn into_result(self) -> Result<Self::Ok, Self::Error>;
4949

5050
/// Wrap an error value to construct the composite result. For example,
5151
/// `Result::Err(x)` and `Result::from_error(x)` are equivalent.
52-
#[cfg_attr(not(bootstrap), lang = "from_error")]
52+
#[lang = "from_error"]
5353
#[unstable(feature = "try_trait", issue = "42327")]
5454
fn from_error(v: Self::Error) -> Self;
5555

5656
/// Wrap an OK value to construct the composite result. For example,
5757
/// `Result::Ok(x)` and `Result::from_ok(x)` are equivalent.
58-
#[cfg_attr(not(bootstrap), lang = "from_ok")]
58+
#[lang = "from_ok"]
5959
#[unstable(feature = "try_trait", issue = "42327")]
6060
fn from_ok(v: Self::Ok) -> Self;
6161
}

library/core/src/option.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ use crate::{
144144
#[stable(feature = "rust1", since = "1.0.0")]
145145
pub enum Option<T> {
146146
/// No value
147-
#[cfg_attr(not(bootstrap), lang = "None")]
147+
#[lang = "None"]
148148
#[stable(feature = "rust1", since = "1.0.0")]
149149
None,
150150
/// Some value `T`
151-
#[cfg_attr(not(bootstrap), lang = "Some")]
151+
#[lang = "Some"]
152152
#[stable(feature = "rust1", since = "1.0.0")]
153153
Some(#[stable(feature = "rust1", since = "1.0.0")] T),
154154
}

library/core/src/pin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ impl<P: Deref> Pin<P> {
555555
/// ```
556556
///
557557
/// [`mem::swap`]: crate::mem::swap
558-
#[cfg_attr(not(bootstrap), lang = "new_unchecked")]
558+
#[lang = "new_unchecked"]
559559
#[stable(feature = "pin", since = "1.33.0")]
560560
#[inline(always)]
561561
pub unsafe fn new_unchecked(pointer: P) -> Pin<P> {

library/core/src/result.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,12 @@ use crate::{convert, fmt};
240240
#[stable(feature = "rust1", since = "1.0.0")]
241241
pub enum Result<T, E> {
242242
/// Contains the success value
243-
#[cfg_attr(not(bootstrap), lang = "Ok")]
243+
#[lang = "Ok"]
244244
#[stable(feature = "rust1", since = "1.0.0")]
245245
Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
246246

247247
/// Contains the error value
248-
#[cfg_attr(not(bootstrap), lang = "Err")]
248+
#[lang = "Err"]
249249
#[stable(feature = "rust1", since = "1.0.0")]
250250
Err(#[stable(feature = "rust1", since = "1.0.0")] E),
251251
}

library/core/src/task/poll.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::result::Result;
1010
#[stable(feature = "futures_api", since = "1.36.0")]
1111
pub enum Poll<T> {
1212
/// Represents that a value is immediately ready.
13-
#[cfg_attr(not(bootstrap), lang = "Ready")]
13+
#[lang = "Ready"]
1414
#[stable(feature = "futures_api", since = "1.36.0")]
1515
Ready(#[stable(feature = "futures_api", since = "1.36.0")] T),
1616

@@ -19,7 +19,7 @@ pub enum Poll<T> {
1919
/// When a function returns `Pending`, the function *must* also
2020
/// ensure that the current task is scheduled to be awoken when
2121
/// progress can be made.
22-
#[cfg_attr(not(bootstrap), lang = "Pending")]
22+
#[lang = "Pending"]
2323
#[stable(feature = "futures_api", since = "1.36.0")]
2424
Pending,
2525
}

library/std/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
#![feature(doc_cfg)]
248248
#![feature(doc_keyword)]
249249
#![feature(doc_masked)]
250-
#![cfg_attr(not(bootstrap), feature(doc_spotlight))]
250+
#![feature(doc_spotlight)]
251251
#![feature(dropck_eyepatch)]
252252
#![feature(duration_constants)]
253253
#![feature(exact_size_is_empty)]

src/bootstrap/channel.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use build_helper::output;
1313
use crate::Build;
1414

1515
// The version number
16-
pub const CFG_RELEASE_NUM: &str = "1.47.0";
16+
pub const CFG_RELEASE_NUM: &str = "1.48.0";
1717

1818
pub struct GitInfo {
1919
inner: Option<Info>,

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+1).0` for Cargo where they were released on `date`.
1414

15-
date: 2020-07-16
15+
date: 2020-08-26
1616
rustc: beta
1717
cargo: beta
1818

0 commit comments

Comments
 (0)