Skip to content

Commit 5de9089

Browse files
committed
Auto merge of #48343 - Mark-Simulacrum:release-step, r=kennytm
Update nightly to 1.26.0 and bootstrap from beta.
2 parents b1f8e6f + 33f5cee commit 5de9089

File tree

18 files changed

+2
-52
lines changed

18 files changed

+2
-52
lines changed

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

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

src/libcore/any.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -349,31 +349,6 @@ pub struct TypeId {
349349
}
350350

351351
impl TypeId {
352-
/// Returns the `TypeId` of the type this generic function has been
353-
/// instantiated with.
354-
///
355-
/// # Examples
356-
///
357-
/// ```
358-
/// use std::any::{Any, TypeId};
359-
///
360-
/// fn is_string<T: ?Sized + Any>(_s: &T) -> bool {
361-
/// TypeId::of::<String>() == TypeId::of::<T>()
362-
/// }
363-
///
364-
/// fn main() {
365-
/// assert_eq!(is_string(&0), false);
366-
/// assert_eq!(is_string(&"cookie monster".to_string()), true);
367-
/// }
368-
/// ```
369-
#[stable(feature = "rust1", since = "1.0.0")]
370-
#[cfg(stage0)]
371-
pub fn of<T: ?Sized + 'static>() -> TypeId {
372-
TypeId {
373-
t: unsafe { intrinsics::type_id::<T>() },
374-
}
375-
}
376-
377352
/// Returns the `TypeId` of the type this generic function has been
378353
/// instantiated with.
379354
///
@@ -393,7 +368,6 @@ impl TypeId {
393368
/// ```
394369
#[stable(feature = "rust1", since = "1.0.0")]
395370
#[rustc_const_unstable(feature="const_type_id")]
396-
#[cfg(not(stage0))]
397371
pub const fn of<T: ?Sized + 'static>() -> TypeId {
398372
TypeId {
399373
t: unsafe { intrinsics::type_id::<T>() },

src/librustc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,4 @@ fn noop() {
179179

180180

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

src/librustc_const_eval/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,4 @@ pub fn provide(providers: &mut Providers) {
5656
}
5757

5858
// Build the diagnostics array at the end so that the metadata includes error use sites.
59-
#[cfg(not(stage0))] // remove after the next snapshot
6059
__build_diagnostic_array! { librustc_const_eval, DIAGNOSTICS }

src/librustc_driver/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,14 +1478,6 @@ pub fn monitor<F: FnOnce() + Send + 'static>(f: F) {
14781478
}
14791479
}
14801480

1481-
#[cfg(stage0)]
1482-
pub fn diagnostics_registry() -> errors::registry::Registry {
1483-
use errors::registry::Registry;
1484-
1485-
Registry::new(&[])
1486-
}
1487-
1488-
#[cfg(not(stage0))]
14891481
pub fn diagnostics_registry() -> errors::registry::Registry {
14901482
use errors::registry::Registry;
14911483

src/librustc_metadata/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,4 @@ pub mod cstore;
5959
pub mod dynamic_lib;
6060
pub mod locator;
6161

62-
#[cfg(not(stage0))] // remove after the next snapshot
6362
__build_diagnostic_array! { librustc_metadata, DIAGNOSTICS }

src/librustc_mir/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,4 @@ pub fn provide(providers: &mut Providers) {
7979
providers.const_eval = interpret::const_eval_provider;
8080
}
8181

82-
#[cfg(not(stage0))] // remove after the next snapshot
8382
__build_diagnostic_array! { librustc_mir, DIAGNOSTICS }

src/librustc_passes/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ pub mod loops;
4444
mod mir_stats;
4545
pub mod static_recursion;
4646

47-
#[cfg(not(stage0))] // remove after the next snapshot
4847
__build_diagnostic_array! { librustc_passes, DIAGNOSTICS }
4948

5049
pub fn provide(providers: &mut Providers) {

src/librustc_plugin/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,4 @@ pub mod registry;
8282
pub mod load;
8383
pub mod build;
8484

85-
#[cfg(not(stage0))] // remove after the next snapshot
8685
__build_diagnostic_array! { librustc_plugin, DIAGNOSTICS }

src/librustc_privacy/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1717,5 +1717,4 @@ fn privacy_access_levels<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
17171717
Rc::new(visitor.access_levels)
17181718
}
17191719

1720-
#[cfg(not(stage0))] // remove after the next snapshot
17211720
__build_diagnostic_array! { librustc_privacy, DIAGNOSTICS }

0 commit comments

Comments
 (0)