Bump version and stage0 compiler
This commit is contained in:
parent
04145943a2
commit
be7ebdd512
47 changed files with 24 additions and 283 deletions
10
src/Cargo.lock
generated
10
src/Cargo.lock
generated
|
@ -329,7 +329,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gcc 0.3.51 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gcc 0.3.51 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"libz-sys 1.0.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libz-sys 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
"openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
"pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -621,7 +621,7 @@ dependencies = [
|
||||||
"gcc 0.3.51 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gcc 0.3.51 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"libssh2-sys 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libssh2-sys 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"libz-sys 1.0.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libz-sys 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
"openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
"pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
@ -633,14 +633,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cmake 0.1.24 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cmake 0.1.24 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"libz-sys 1.0.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libz-sys 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
"openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
"pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libz-sys"
|
name = "libz-sys"
|
||||||
version = "1.0.14"
|
version = "1.0.16"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gcc 0.3.51 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gcc 0.3.51 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -2071,7 +2071,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
"checksum libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)" = "38f5c2b18a287cf78b4097db62e20f43cace381dc76ae5c0a3073067f78b7ddc"
|
"checksum libc 0.2.24 (registry+https://github.com/rust-lang/crates.io-index)" = "38f5c2b18a287cf78b4097db62e20f43cace381dc76ae5c0a3073067f78b7ddc"
|
||||||
"checksum libgit2-sys 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)" = "df18a822100352d9863b302faf6f8f25c0e77f0e60feb40e5dbe1238b7f13b1d"
|
"checksum libgit2-sys 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)" = "df18a822100352d9863b302faf6f8f25c0e77f0e60feb40e5dbe1238b7f13b1d"
|
||||||
"checksum libssh2-sys 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0db4ec23611747ef772db1c4d650f8bd762f07b461727ec998f953c614024b75"
|
"checksum libssh2-sys 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0db4ec23611747ef772db1c4d650f8bd762f07b461727ec998f953c614024b75"
|
||||||
"checksum libz-sys 1.0.14 (registry+https://github.com/rust-lang/crates.io-index)" = "e70195f655a44af531ad7135b1ec2a0a82522b451fe09730fbb25674a85996e7"
|
"checksum libz-sys 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)" = "3fdd64ef8ee652185674455c1d450b83cbc8ad895625d543b5324d923f82e4d8"
|
||||||
"checksum log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "880f77541efa6e5cc74e76910c9884d9859683118839d6a1dc3b11e63512565b"
|
"checksum log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "880f77541efa6e5cc74e76910c9884d9859683118839d6a1dc3b11e63512565b"
|
||||||
"checksum lzma-sys 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "013fa6506eb7d26040c46dab9ecb7ccb4e2896b5bf24a9d65932501ea9f67af8"
|
"checksum lzma-sys 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "013fa6506eb7d26040c46dab9ecb7ccb4e2896b5bf24a9d65932501ea9f67af8"
|
||||||
"checksum matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376"
|
"checksum matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376"
|
||||||
|
|
|
@ -118,13 +118,6 @@ fn main() {
|
||||||
cmd.arg("-Cprefer-dynamic");
|
cmd.arg("-Cprefer-dynamic");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pass the `rustbuild` feature flag to crates which rustbuild is
|
|
||||||
// building. See the comment in bootstrap/lib.rs where this env var is
|
|
||||||
// set for more details.
|
|
||||||
if env::var_os("RUSTBUILD_UNSTABLE").is_some() {
|
|
||||||
cmd.arg("--cfg").arg("rustbuild");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Help the libc crate compile by assisting it in finding the MUSL
|
// Help the libc crate compile by assisting it in finding the MUSL
|
||||||
// native libraries.
|
// native libraries.
|
||||||
if let Some(s) = env::var_os("MUSL_ROOT") {
|
if let Some(s) = env::var_os("MUSL_ROOT") {
|
||||||
|
@ -218,11 +211,7 @@ fn main() {
|
||||||
// do that we pass a weird flag to the compiler to get it to do
|
// do that we pass a weird flag to the compiler to get it to do
|
||||||
// so. Note that this is definitely a hack, and we should likely
|
// so. Note that this is definitely a hack, and we should likely
|
||||||
// flesh out rpath support more fully in the future.
|
// flesh out rpath support more fully in the future.
|
||||||
//
|
cmd.arg("-Z").arg("osx-rpath-install-name");
|
||||||
// FIXME: remove condition after next stage0
|
|
||||||
if stage != "0" {
|
|
||||||
cmd.arg("-Z").arg("osx-rpath-install-name");
|
|
||||||
}
|
|
||||||
Some("-Wl,-rpath,@loader_path/../lib")
|
Some("-Wl,-rpath,@loader_path/../lib")
|
||||||
} else if !target.contains("windows") {
|
} else if !target.contains("windows") {
|
||||||
Some("-Wl,-rpath,$ORIGIN/../lib")
|
Some("-Wl,-rpath,$ORIGIN/../lib")
|
||||||
|
@ -242,12 +231,8 @@ fn main() {
|
||||||
// Force all crates compiled by this compiler to (a) be unstable and (b)
|
// Force all crates compiled by this compiler to (a) be unstable and (b)
|
||||||
// allow the `rustc_private` feature to link to other unstable crates
|
// allow the `rustc_private` feature to link to other unstable crates
|
||||||
// also in the sysroot.
|
// also in the sysroot.
|
||||||
//
|
|
||||||
// FIXME: remove condition after next stage0
|
|
||||||
if env::var_os("RUSTC_FORCE_UNSTABLE").is_some() {
|
if env::var_os("RUSTC_FORCE_UNSTABLE").is_some() {
|
||||||
if stage != "0" {
|
cmd.arg("-Z").arg("force-unstable-if-unmarked");
|
||||||
cmd.arg("-Z").arg("force-unstable-if-unmarked");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -385,6 +385,7 @@ class RustBuild(object):
|
||||||
if self.clean and os.path.exists(build_dir):
|
if self.clean and os.path.exists(build_dir):
|
||||||
shutil.rmtree(build_dir)
|
shutil.rmtree(build_dir)
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
|
env["RUSTC_BOOTSTRAP"] = '1'
|
||||||
env["CARGO_TARGET_DIR"] = build_dir
|
env["CARGO_TARGET_DIR"] = build_dir
|
||||||
env["RUSTC"] = self.rustc()
|
env["RUSTC"] = self.rustc()
|
||||||
env["LD_LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
|
env["LD_LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
|
||||||
|
|
|
@ -23,7 +23,7 @@ use build_helper::output;
|
||||||
use Build;
|
use Build;
|
||||||
|
|
||||||
// The version number
|
// The version number
|
||||||
pub const CFG_RELEASE_NUM: &'static str = "1.19.0";
|
pub const CFG_RELEASE_NUM: &'static str = "1.20.0";
|
||||||
|
|
||||||
// An optional number to put after the label, e.g. '.2' -> '-beta.2'
|
// An optional number to put after the label, e.g. '.2' -> '-beta.2'
|
||||||
// Be sure to make this starts with a dot to conform to semver pre-release
|
// Be sure to make this starts with a dot to conform to semver pre-release
|
||||||
|
|
|
@ -672,6 +672,7 @@ pub fn bootstrap(build: &Build) {
|
||||||
cmd.arg("test")
|
cmd.arg("test")
|
||||||
.current_dir(build.src.join("src/bootstrap"))
|
.current_dir(build.src.join("src/bootstrap"))
|
||||||
.env("CARGO_TARGET_DIR", build.out.join("bootstrap"))
|
.env("CARGO_TARGET_DIR", build.out.join("bootstrap"))
|
||||||
|
.env("RUSTC_BOOTSTRAP", "1")
|
||||||
.env("RUSTC", &build.rustc);
|
.env("RUSTC", &build.rustc);
|
||||||
if build.flags.cmd.no_fail_fast() {
|
if build.flags.cmd.no_fail_fast() {
|
||||||
cmd.arg("--no-fail-fast");
|
cmd.arg("--no-fail-fast");
|
||||||
|
|
|
@ -429,29 +429,6 @@ impl Build {
|
||||||
.env("RUSTC_SNAPSHOT_LIBDIR", self.rustc_libdir(compiler));
|
.env("RUSTC_SNAPSHOT_LIBDIR", self.rustc_libdir(compiler));
|
||||||
}
|
}
|
||||||
|
|
||||||
// There are two invariants we must maintain:
|
|
||||||
// * stable crates cannot depend on unstable crates (general Rust rule),
|
|
||||||
// * crates that end up in the sysroot must be unstable (rustbuild rule).
|
|
||||||
//
|
|
||||||
// In order to do enforce the latter, we pass the env var
|
|
||||||
// `RUSTBUILD_UNSTABLE` down the line for any crates which will end up
|
|
||||||
// in the sysroot. We read this in bootstrap/bin/rustc.rs and if it is
|
|
||||||
// set, then we pass the `rustbuild` feature to rustc when building the
|
|
||||||
// the crate.
|
|
||||||
//
|
|
||||||
// In turn, crates that can be used here should recognise the `rustbuild`
|
|
||||||
// feature and opt-in to `rustc_private`.
|
|
||||||
//
|
|
||||||
// We can't always pass `rustbuild` because crates which are outside of
|
|
||||||
// the compiler, libs, and tests are stable and we don't want to make
|
|
||||||
// their deps unstable (since this would break the first invariant
|
|
||||||
// above).
|
|
||||||
//
|
|
||||||
// FIXME: remove this after next stage0
|
|
||||||
if mode != Mode::Tool && stage == 0 {
|
|
||||||
cargo.env("RUSTBUILD_UNSTABLE", "1");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ignore incremental modes except for stage0, since we're
|
// Ignore incremental modes except for stage0, since we're
|
||||||
// not guaranteeing correctness across builds if the compiler
|
// not guaranteeing correctness across builds if the compiler
|
||||||
// is changing under your feet.`
|
// is changing under your feet.`
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
# `question_mark_carrier`
|
|
||||||
|
|
||||||
The tracking issue for this feature is: [#31436]
|
|
||||||
|
|
||||||
[#31436]: https://github.com/rust-lang/rust/issues/31436
|
|
||||||
|
|
||||||
------------------------
|
|
||||||
|
|
||||||
This feature has been superseded by [`try_trait`][try_trait].
|
|
||||||
|
|
||||||
It exists only in stage0 for bootstrapping.
|
|
||||||
|
|
||||||
[try_trait]: library-features/try-trait.html
|
|
|
@ -154,6 +154,11 @@ fn main() {
|
||||||
make.current_dir(&native.out_dir)
|
make.current_dir(&native.out_dir)
|
||||||
.arg("build_lib_static");
|
.arg("build_lib_static");
|
||||||
|
|
||||||
|
// These are intended for mingw32-make which we don't use
|
||||||
|
if cfg!(windows) {
|
||||||
|
make.env_remove("MAKEFLAGS").env_remove("MFLAGS");
|
||||||
|
}
|
||||||
|
|
||||||
// mingw make seems... buggy? unclear...
|
// mingw make seems... buggy? unclear...
|
||||||
if !host.contains("windows") {
|
if !host.contains("windows") {
|
||||||
make.arg("-j")
|
make.arg("-j")
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
//! objects of a single type.
|
//! objects of a single type.
|
||||||
|
|
||||||
#![crate_name = "arena"]
|
#![crate_name = "arena"]
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
@ -33,7 +32,6 @@
|
||||||
#![feature(dropck_eyepatch)]
|
#![feature(dropck_eyepatch)]
|
||||||
#![feature(generic_param_attrs)]
|
#![feature(generic_param_attrs)]
|
||||||
#![feature(needs_drop)]
|
#![feature(needs_drop)]
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![cfg_attr(test, feature(test))]
|
#![cfg_attr(test, feature(test))]
|
||||||
|
|
||||||
#![allow(deprecated)]
|
#![allow(deprecated)]
|
||||||
|
|
|
@ -572,7 +572,6 @@ extern "rust-intrinsic" {
|
||||||
///
|
///
|
||||||
/// The `locality` argument must be a constant integer and is a temporal locality specifier
|
/// The `locality` argument must be a constant integer and is a temporal locality specifier
|
||||||
/// ranging from (0) - no locality, to (3) - extremely local keep in cache
|
/// ranging from (0) - no locality, to (3) - extremely local keep in cache
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn prefetch_read_data<T>(data: *const T, locality: i32);
|
pub fn prefetch_read_data<T>(data: *const T, locality: i32);
|
||||||
/// The `prefetch` intrinsic is a hint to the code generator to insert a prefetch instruction
|
/// The `prefetch` intrinsic is a hint to the code generator to insert a prefetch instruction
|
||||||
/// if supported; otherwise, it is a noop.
|
/// if supported; otherwise, it is a noop.
|
||||||
|
@ -581,7 +580,6 @@ extern "rust-intrinsic" {
|
||||||
///
|
///
|
||||||
/// The `locality` argument must be a constant integer and is a temporal locality specifier
|
/// The `locality` argument must be a constant integer and is a temporal locality specifier
|
||||||
/// ranging from (0) - no locality, to (3) - extremely local keep in cache
|
/// ranging from (0) - no locality, to (3) - extremely local keep in cache
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn prefetch_write_data<T>(data: *const T, locality: i32);
|
pub fn prefetch_write_data<T>(data: *const T, locality: i32);
|
||||||
/// The `prefetch` intrinsic is a hint to the code generator to insert a prefetch instruction
|
/// The `prefetch` intrinsic is a hint to the code generator to insert a prefetch instruction
|
||||||
/// if supported; otherwise, it is a noop.
|
/// if supported; otherwise, it is a noop.
|
||||||
|
@ -590,7 +588,6 @@ extern "rust-intrinsic" {
|
||||||
///
|
///
|
||||||
/// The `locality` argument must be a constant integer and is a temporal locality specifier
|
/// The `locality` argument must be a constant integer and is a temporal locality specifier
|
||||||
/// ranging from (0) - no locality, to (3) - extremely local keep in cache
|
/// ranging from (0) - no locality, to (3) - extremely local keep in cache
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn prefetch_read_instruction<T>(data: *const T, locality: i32);
|
pub fn prefetch_read_instruction<T>(data: *const T, locality: i32);
|
||||||
/// The `prefetch` intrinsic is a hint to the code generator to insert a prefetch instruction
|
/// The `prefetch` intrinsic is a hint to the code generator to insert a prefetch instruction
|
||||||
/// if supported; otherwise, it is a noop.
|
/// if supported; otherwise, it is a noop.
|
||||||
|
@ -599,20 +596,9 @@ extern "rust-intrinsic" {
|
||||||
///
|
///
|
||||||
/// The `locality` argument must be a constant integer and is a temporal locality specifier
|
/// The `locality` argument must be a constant integer and is a temporal locality specifier
|
||||||
/// ranging from (0) - no locality, to (3) - extremely local keep in cache
|
/// ranging from (0) - no locality, to (3) - extremely local keep in cache
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn prefetch_write_instruction<T>(data: *const T, locality: i32);
|
pub fn prefetch_write_instruction<T>(data: *const T, locality: i32);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Empty bootstrap implementations for stage0 compilation
|
|
||||||
#[cfg(stage0)]
|
|
||||||
pub fn prefetch_read_data<T>(_data: *const T, _locality: i32) { /* EMPTY */ }
|
|
||||||
#[cfg(stage0)]
|
|
||||||
pub fn prefetch_write_data<T>(_data: *const T, _locality: i32) { /* EMPTY */ }
|
|
||||||
#[cfg(stage0)]
|
|
||||||
pub fn prefetch_read_instruction<T>(_data: *const T, _locality: i32) { /* EMPTY */ }
|
|
||||||
#[cfg(stage0)]
|
|
||||||
pub fn prefetch_write_instruction<T>(_data: *const T, _locality: i32) { /* EMPTY */ }
|
|
||||||
|
|
||||||
extern "rust-intrinsic" {
|
extern "rust-intrinsic" {
|
||||||
|
|
||||||
pub fn atomic_fence();
|
pub fn atomic_fence();
|
||||||
|
|
|
@ -186,9 +186,6 @@ pub use self::range::{Range, RangeFrom, RangeFull, RangeTo};
|
||||||
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
|
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
|
||||||
pub use self::range::{RangeInclusive, RangeToInclusive};
|
pub use self::range::{RangeInclusive, RangeToInclusive};
|
||||||
|
|
||||||
#[unstable(feature = "question_mark_carrier", issue = "31436")]
|
|
||||||
#[cfg(stage0)]
|
|
||||||
pub use self::try::Carrier;
|
|
||||||
#[unstable(feature = "try_trait", issue = "42327")]
|
#[unstable(feature = "try_trait", issue = "42327")]
|
||||||
pub use self::try::Try;
|
pub use self::try::Try;
|
||||||
|
|
||||||
|
|
|
@ -8,70 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
/// This trait has been superseded by the `Try` trait, but must remain
|
|
||||||
/// here as `?` is still lowered to it in stage0 .
|
|
||||||
#[cfg(stage0)]
|
|
||||||
#[unstable(feature = "question_mark_carrier", issue = "31436")]
|
|
||||||
pub trait Carrier {
|
|
||||||
/// The type of the value when computation succeeds.
|
|
||||||
type Success;
|
|
||||||
/// The type of the value when computation errors out.
|
|
||||||
type Error;
|
|
||||||
|
|
||||||
/// Create a `Carrier` from a success value.
|
|
||||||
fn from_success(_: Self::Success) -> Self;
|
|
||||||
|
|
||||||
/// Create a `Carrier` from an error value.
|
|
||||||
fn from_error(_: Self::Error) -> Self;
|
|
||||||
|
|
||||||
/// Translate this `Carrier` to another implementation of `Carrier` with the
|
|
||||||
/// same associated types.
|
|
||||||
fn translate<T>(self) -> T where T: Carrier<Success=Self::Success, Error=Self::Error>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(stage0)]
|
|
||||||
#[unstable(feature = "question_mark_carrier", issue = "31436")]
|
|
||||||
impl<U, V> Carrier for Result<U, V> {
|
|
||||||
type Success = U;
|
|
||||||
type Error = V;
|
|
||||||
|
|
||||||
fn from_success(u: U) -> Result<U, V> {
|
|
||||||
Ok(u)
|
|
||||||
}
|
|
||||||
|
|
||||||
fn from_error(e: V) -> Result<U, V> {
|
|
||||||
Err(e)
|
|
||||||
}
|
|
||||||
|
|
||||||
fn translate<T>(self) -> T
|
|
||||||
where T: Carrier<Success=U, Error=V>
|
|
||||||
{
|
|
||||||
match self {
|
|
||||||
Ok(u) => T::from_success(u),
|
|
||||||
Err(e) => T::from_error(e),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct _DummyErrorType;
|
|
||||||
|
|
||||||
impl Try for _DummyErrorType {
|
|
||||||
type Ok = ();
|
|
||||||
type Error = ();
|
|
||||||
|
|
||||||
fn into_result(self) -> Result<Self::Ok, Self::Error> {
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn from_ok(_: ()) -> _DummyErrorType {
|
|
||||||
_DummyErrorType
|
|
||||||
}
|
|
||||||
|
|
||||||
fn from_error(_: ()) -> _DummyErrorType {
|
|
||||||
_DummyErrorType
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A trait for customizing the behaviour of the `?` operator.
|
/// A trait for customizing the behaviour of the `?` operator.
|
||||||
///
|
///
|
||||||
/// A type implementing `Try` is one that has a canonical way to view it
|
/// A type implementing `Try` is one that has a canonical way to view it
|
||||||
|
|
|
@ -1030,47 +1030,38 @@ impl<T> SliceIndex<[T]> for ops::RangeInclusive<usize> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(stage0)] // The bootstrap compiler has a different `...` desugar
|
|
||||||
fn inclusive(start: usize, end: usize) -> ops::RangeInclusive<usize> {
|
|
||||||
ops::RangeInclusive { start, end }
|
|
||||||
}
|
|
||||||
#[cfg(not(stage0))]
|
|
||||||
fn inclusive(start: usize, end: usize) -> ops::RangeInclusive<usize> {
|
|
||||||
start...end
|
|
||||||
}
|
|
||||||
|
|
||||||
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
|
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
|
||||||
impl<T> SliceIndex<[T]> for ops::RangeToInclusive<usize> {
|
impl<T> SliceIndex<[T]> for ops::RangeToInclusive<usize> {
|
||||||
type Output = [T];
|
type Output = [T];
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn get(self, slice: &[T]) -> Option<&[T]> {
|
fn get(self, slice: &[T]) -> Option<&[T]> {
|
||||||
inclusive(0, self.end).get(slice)
|
(0...self.end).get(slice)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn get_mut(self, slice: &mut [T]) -> Option<&mut [T]> {
|
fn get_mut(self, slice: &mut [T]) -> Option<&mut [T]> {
|
||||||
inclusive(0, self.end).get_mut(slice)
|
(0...self.end).get_mut(slice)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
unsafe fn get_unchecked(self, slice: &[T]) -> &[T] {
|
unsafe fn get_unchecked(self, slice: &[T]) -> &[T] {
|
||||||
inclusive(0, self.end).get_unchecked(slice)
|
(0...self.end).get_unchecked(slice)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
unsafe fn get_unchecked_mut(self, slice: &mut [T]) -> &mut [T] {
|
unsafe fn get_unchecked_mut(self, slice: &mut [T]) -> &mut [T] {
|
||||||
inclusive(0, self.end).get_unchecked_mut(slice)
|
(0...self.end).get_unchecked_mut(slice)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn index(self, slice: &[T]) -> &[T] {
|
fn index(self, slice: &[T]) -> &[T] {
|
||||||
inclusive(0, self.end).index(slice)
|
(0...self.end).index(slice)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn index_mut(self, slice: &mut [T]) -> &mut [T] {
|
fn index_mut(self, slice: &mut [T]) -> &mut [T] {
|
||||||
inclusive(0, self.end).index_mut(slice)
|
(0...self.end).index_mut(slice)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
//! [mz]: https://code.google.com/p/miniz/
|
//! [mz]: https://code.google.com/p/miniz/
|
||||||
|
|
||||||
#![crate_name = "flate"]
|
#![crate_name = "flate"]
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
@ -25,7 +24,6 @@
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
|
|
||||||
#![feature(libc)]
|
#![feature(libc)]
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![feature(unique)]
|
#![feature(unique)]
|
||||||
#![cfg_attr(test, feature(rand))]
|
#![cfg_attr(test, feature(rand))]
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
//! generated instead.
|
//! generated instead.
|
||||||
|
|
||||||
#![crate_name = "fmt_macros"]
|
#![crate_name = "fmt_macros"]
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
@ -25,9 +24,6 @@
|
||||||
test(attr(deny(warnings))))]
|
test(attr(deny(warnings))))]
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![feature(rustc_private)]
|
|
||||||
|
|
||||||
pub use self::Piece::*;
|
pub use self::Piece::*;
|
||||||
pub use self::Position::*;
|
pub use self::Position::*;
|
||||||
pub use self::Alignment::*;
|
pub use self::Alignment::*;
|
||||||
|
|
|
@ -78,9 +78,6 @@
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
#![crate_name = "getopts"]
|
#![crate_name = "getopts"]
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private",
|
|
||||||
reason = "use the crates.io `getopts` library instead",
|
|
||||||
issue = "27812"))]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
@ -91,7 +88,6 @@
|
||||||
|
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
use self::Name::*;
|
use self::Name::*;
|
||||||
use self::HasArg::*;
|
use self::HasArg::*;
|
||||||
|
|
|
@ -284,8 +284,6 @@
|
||||||
//! * [DOT language](http://www.graphviz.org/doc/info/lang.html)
|
//! * [DOT language](http://www.graphviz.org/doc/info/lang.html)
|
||||||
|
|
||||||
#![crate_name = "graphviz"]
|
#![crate_name = "graphviz"]
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -72,7 +72,6 @@
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
#![crate_name = "proc_macro_plugin"]
|
#![crate_name = "proc_macro_plugin"]
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![feature(plugin_registrar)]
|
#![feature(plugin_registrar)]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
@ -81,9 +80,7 @@
|
||||||
html_root_url = "https://doc.rust-lang.org/nightly/")]
|
html_root_url = "https://doc.rust-lang.org/nightly/")]
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![feature(rustc_diagnostic_macros)]
|
#![feature(rustc_diagnostic_macros)]
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
|
|
||||||
extern crate rustc_plugin;
|
extern crate rustc_plugin;
|
||||||
extern crate syntax;
|
extern crate syntax;
|
||||||
|
|
|
@ -42,11 +42,6 @@
|
||||||
#![feature(sort_unstable)]
|
#![feature(sort_unstable)]
|
||||||
#![feature(trace_macros)]
|
#![feature(trace_macros)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![cfg_attr(stage0, feature(loop_break_value))]
|
|
||||||
|
|
||||||
#![recursion_limit="256"]
|
#![recursion_limit="256"]
|
||||||
|
|
||||||
extern crate arena;
|
extern crate arena;
|
||||||
|
|
|
@ -35,10 +35,6 @@
|
||||||
#![feature(rand)]
|
#![feature(rand)]
|
||||||
#![cfg_attr(test, feature(rand))]
|
#![cfg_attr(test, feature(rand))]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
extern crate syntax;
|
extern crate syntax;
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
extern crate serialize;
|
extern crate serialize;
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
//! A typesafe bitmask flag generator.
|
//! A typesafe bitmask flag generator.
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,6 @@
|
||||||
#![feature(associated_consts)]
|
#![feature(associated_consts)]
|
||||||
#![feature(nonzero)]
|
#![feature(nonzero)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate syntax;
|
#[macro_use] extern crate syntax;
|
||||||
extern crate syntax_pos;
|
extern crate syntax_pos;
|
||||||
|
|
|
@ -29,10 +29,6 @@
|
||||||
#![feature(const_fn)]
|
#![feature(const_fn)]
|
||||||
#![feature(i128_type)]
|
#![feature(i128_type)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
extern crate arena;
|
extern crate arena;
|
||||||
#[macro_use] extern crate syntax;
|
#[macro_use] extern crate syntax;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
|
|
|
@ -26,10 +26,6 @@
|
||||||
#![feature(i128)]
|
#![feature(i128)]
|
||||||
#![feature(i128_type)]
|
#![feature(i128_type)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
extern crate syntax;
|
extern crate syntax;
|
||||||
|
|
||||||
extern crate serialize as rustc_serialize; // used by deriving
|
extern crate serialize as rustc_serialize; // used by deriving
|
||||||
|
|
|
@ -37,9 +37,6 @@
|
||||||
#![feature(specialization)]
|
#![feature(specialization)]
|
||||||
#![feature(manually_drop)]
|
#![feature(manually_drop)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![cfg_attr(stage0, feature(struct_field_attributes))]
|
#![cfg_attr(stage0, feature(struct_field_attributes))]
|
||||||
|
|
||||||
#![cfg_attr(unix, feature(libc))]
|
#![cfg_attr(unix, feature(libc))]
|
||||||
|
|
|
@ -28,11 +28,6 @@
|
||||||
#![feature(rustc_diagnostic_macros)]
|
#![feature(rustc_diagnostic_macros)]
|
||||||
#![feature(set_stdio)]
|
#![feature(set_stdio)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![cfg_attr(stage0, feature(loop_break_value))]
|
|
||||||
|
|
||||||
extern crate arena;
|
extern crate arena;
|
||||||
extern crate getopts;
|
extern crate getopts;
|
||||||
extern crate graphviz;
|
extern crate graphviz;
|
||||||
|
|
|
@ -22,10 +22,6 @@
|
||||||
#![feature(libc)]
|
#![feature(libc)]
|
||||||
#![feature(conservative_impl_trait)]
|
#![feature(conservative_impl_trait)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
extern crate term;
|
extern crate term;
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
extern crate serialize as rustc_serialize;
|
extern crate serialize as rustc_serialize;
|
||||||
|
|
|
@ -22,10 +22,6 @@
|
||||||
#![feature(conservative_impl_trait)]
|
#![feature(conservative_impl_trait)]
|
||||||
#![feature(sort_unstable)]
|
#![feature(sort_unstable)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
extern crate graphviz;
|
extern crate graphviz;
|
||||||
#[macro_use] extern crate rustc;
|
#[macro_use] extern crate rustc;
|
||||||
extern crate rustc_data_structures;
|
extern crate rustc_data_structures;
|
||||||
|
|
|
@ -35,10 +35,6 @@
|
||||||
#![feature(rustc_diagnostic_macros)]
|
#![feature(rustc_diagnostic_macros)]
|
||||||
#![feature(slice_patterns)]
|
#![feature(slice_patterns)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate syntax;
|
extern crate syntax;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
@ -28,10 +28,6 @@
|
||||||
#![feature(link_args)]
|
#![feature(link_args)]
|
||||||
#![feature(static_nobundle)]
|
#![feature(static_nobundle)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
#[no_link]
|
#[no_link]
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
#![feature(specialization)]
|
#![feature(specialization)]
|
||||||
#![feature(discriminant_value)]
|
#![feature(discriminant_value)]
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![feature(sort_unstable)]
|
#![feature(sort_unstable)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
@ -27,10 +27,6 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
|
||||||
#![feature(placement_in_syntax)]
|
#![feature(placement_in_syntax)]
|
||||||
#![feature(collection_placement)]
|
#![feature(collection_placement)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
extern crate graphviz as dot;
|
extern crate graphviz as dot;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
@ -24,10 +24,6 @@
|
||||||
|
|
||||||
#![feature(rustc_diagnostic_macros)]
|
#![feature(rustc_diagnostic_macros)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate rustc;
|
extern crate rustc;
|
||||||
extern crate rustc_const_eval;
|
extern crate rustc_const_eval;
|
||||||
|
|
|
@ -9,10 +9,8 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![crate_name = "rustc_platform_intrinsics"]
|
#![crate_name = "rustc_platform_intrinsics"]
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
#![allow(bad_style)]
|
#![allow(bad_style)]
|
||||||
|
|
||||||
|
|
|
@ -60,10 +60,6 @@
|
||||||
|
|
||||||
#![feature(rustc_diagnostic_macros)]
|
#![feature(rustc_diagnostic_macros)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
#[macro_use] extern crate syntax;
|
#[macro_use] extern crate syntax;
|
||||||
|
|
||||||
extern crate rustc;
|
extern crate rustc;
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
|
|
||||||
#![feature(rustc_diagnostic_macros)]
|
#![feature(rustc_diagnostic_macros)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
extern crate rustc;
|
extern crate rustc;
|
||||||
#[macro_use] extern crate syntax;
|
#[macro_use] extern crate syntax;
|
||||||
extern crate syntax_pos;
|
extern crate syntax_pos;
|
||||||
|
|
|
@ -19,10 +19,6 @@
|
||||||
#![feature(associated_consts)]
|
#![feature(associated_consts)]
|
||||||
#![feature(rustc_diagnostic_macros)]
|
#![feature(rustc_diagnostic_macros)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
@ -19,10 +19,6 @@
|
||||||
#![feature(custom_attribute)]
|
#![feature(custom_attribute)]
|
||||||
#![allow(unused_attributes)]
|
#![allow(unused_attributes)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
#[macro_use] extern crate rustc;
|
#[macro_use] extern crate rustc;
|
||||||
|
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
|
|
|
@ -36,10 +36,6 @@
|
||||||
#![feature(conservative_impl_trait)]
|
#![feature(conservative_impl_trait)]
|
||||||
#![feature(command_envs)]
|
#![feature(command_envs)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
use rustc::dep_graph::WorkProduct;
|
use rustc::dep_graph::WorkProduct;
|
||||||
use syntax_pos::symbol::Symbol;
|
use syntax_pos::symbol::Symbol;
|
||||||
|
|
||||||
|
|
|
@ -82,11 +82,6 @@ This API is completely unstable and subject to change.
|
||||||
#![feature(rustc_diagnostic_macros)]
|
#![feature(rustc_diagnostic_macros)]
|
||||||
#![feature(slice_patterns)]
|
#![feature(slice_patterns)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![cfg_attr(stage0, feature(loop_break_value))]
|
|
||||||
|
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate syntax;
|
#[macro_use] extern crate syntax;
|
||||||
extern crate syntax_pos;
|
extern crate syntax_pos;
|
||||||
|
|
|
@ -26,10 +26,6 @@
|
||||||
#![feature(unicode)]
|
#![feature(unicode)]
|
||||||
#![feature(vec_remove_item)]
|
#![feature(vec_remove_item)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
extern crate arena;
|
extern crate arena;
|
||||||
extern crate getopts;
|
extern crate getopts;
|
||||||
extern crate env_logger;
|
extern crate env_logger;
|
||||||
|
|
|
@ -15,9 +15,6 @@ Core encoding and decoding interfaces.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#![crate_name = "serialize"]
|
#![crate_name = "serialize"]
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private",
|
|
||||||
reason = "deprecated in favor of rustc-serialize on crates.io",
|
|
||||||
issue = "27812"))]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
@ -31,7 +28,6 @@ Core encoding and decoding interfaces.
|
||||||
#![feature(core_intrinsics)]
|
#![feature(core_intrinsics)]
|
||||||
#![feature(i128_type)]
|
#![feature(i128_type)]
|
||||||
#![feature(specialization)]
|
#![feature(specialization)]
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
#![cfg_attr(test, feature(test))]
|
#![cfg_attr(test, feature(test))]
|
||||||
|
|
||||||
pub use self::serialize::{Decoder, Encoder, Decodable, Encodable};
|
pub use self::serialize::{Decoder, Encoder, Decodable, Encodable};
|
||||||
|
|
|
@ -27,10 +27,6 @@
|
||||||
#![feature(rustc_diagnostic_macros)]
|
#![feature(rustc_diagnostic_macros)]
|
||||||
#![feature(i128_type)]
|
#![feature(i128_type)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
extern crate serialize;
|
extern crate serialize;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate bitflags;
|
#[macro_use] extern crate bitflags;
|
||||||
|
|
|
@ -20,10 +20,6 @@
|
||||||
|
|
||||||
#![feature(proc_macro_internals)]
|
#![feature(proc_macro_internals)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
extern crate fmt_macros;
|
extern crate fmt_macros;
|
||||||
extern crate log;
|
extern crate log;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
@ -29,17 +29,13 @@
|
||||||
#![allow(unused_attributes)]
|
#![allow(unused_attributes)]
|
||||||
#![feature(specialization)]
|
#![feature(specialization)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(rustc_private))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
use std::cell::{Cell, RefCell};
|
use std::cell::{Cell, RefCell};
|
||||||
use std::ops::{Add, Sub};
|
|
||||||
use std::rc::Rc;
|
|
||||||
use std::cmp;
|
use std::cmp;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::hash::Hasher;
|
use std::hash::Hasher;
|
||||||
|
use std::ops::{Add, Sub};
|
||||||
|
use std::rc::Rc;
|
||||||
|
|
||||||
use rustc_data_structures::stable_hasher::StableHasher;
|
use rustc_data_structures::stable_hasher::StableHasher;
|
||||||
|
|
||||||
|
|
|
@ -57,9 +57,6 @@
|
||||||
#![feature(custom_attribute)]
|
#![feature(custom_attribute)]
|
||||||
#![allow(unused_attributes)]
|
#![allow(unused_attributes)]
|
||||||
|
|
||||||
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
|
|
||||||
#![cfg_attr(stage0, feature(staged_api))]
|
|
||||||
|
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
|
|
||||||
pub use terminfo::TerminfoTerminal;
|
pub use terminfo::TerminfoTerminal;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# source tarball for a stable release you'll likely see `1.x.0` for rustc and
|
# source tarball for a stable release you'll likely see `1.x.0` for rustc and
|
||||||
# `0.x.0` for Cargo where they were released on `date`.
|
# `0.x.0` for Cargo where they were released on `date`.
|
||||||
|
|
||||||
date: 2017-04-25
|
date: 2017-06-15
|
||||||
rustc: beta
|
rustc: beta
|
||||||
cargo: beta
|
cargo: beta
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue