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

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

-26
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

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

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

-8
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

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

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

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

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

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

src/librustc_resolve/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -4183,5 +4183,4 @@ pub enum MakeGlobMap {
41834183
No,
41844184
}
41854185

4186-
#[cfg(not(stage0))] // remove after the next snapshot
41874186
__build_diagnostic_array! { librustc_resolve, DIAGNOSTICS }

src/librustc_trans/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ impl TransCrate for LlvmTransCrate {
194194
llvm_util::print_version();
195195
}
196196

197-
#[cfg(not(stage0))]
198197
fn diagnostics(&self) -> &[(&'static str, &'static str)] {
199198
&DIAGNOSTICS
200199
}
@@ -404,5 +403,4 @@ struct CrateInfo {
404403
used_crates_dynamic: Vec<(CrateNum, LibSource)>,
405404
}
406405

407-
#[cfg(not(stage0))] // remove after the next snapshot
408406
__build_diagnostic_array! { librustc_trans, DIAGNOSTICS }

src/librustc_trans_utils/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,4 @@ pub fn find_exported_symbols<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) -> NodeSet {
119119
}).collect()
120120
}
121121

122-
#[cfg(not(stage0))] // remove after the next snapshot
123122
__build_diagnostic_array! { librustc_trans_utils, DIAGNOSTICS }

src/librustc_typeck/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -383,5 +383,4 @@ pub fn hir_trait_to_predicates<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, hir_trait:
383383
(principal, projections)
384384
}
385385

386-
#[cfg(not(stage0))] // remove after the next snapshot
387386
__build_diagnostic_array! { librustc_typeck, DIAGNOSTICS }

src/librustdoc/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ version = "0.0.0"
66
[lib]
77
name = "rustdoc"
88
path = "lib.rs"
9-
# SNAP/stage0(cargo)
10-
doctest = false
119

1210
[dependencies]
1311
pulldown-cmark = { version = "0.1.2", default-features = false }

src/libstd/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@
324324
#![feature(doc_spotlight)]
325325
#![cfg_attr(test, feature(update_panic_count))]
326326
#![cfg_attr(windows, feature(used))]
327-
#![cfg_attr(stage0, feature(repr_align))]
328327

329328
#![default_lib_allocator]
330329

src/libsyntax/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,4 @@ pub mod ext {
152152
#[cfg(test)]
153153
mod test_snippet;
154154

155-
#[cfg(not(stage0))] // remove after the next snapshot
156155
__build_diagnostic_array! { libsyntax, DIAGNOSTICS }

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: 2018-01-02
15+
date: 2018-02-20
1616
rustc: beta
1717
cargo: beta
1818

0 commit comments

Comments
 (0)