diff options
| author | bors <bors@rust-lang.org> | 2018-12-11 03:22:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-12-11 03:22:10 +0000 |
| commit | 4c0116e13ffd4b84e6691cd3b1f09269c4e76728 (patch) | |
| tree | 88ca46a47465bc18f188d5bf0e22f55fd92af7a5 /src | |
| parent | da1527cb06c7245f83ca51903ea2a27631820215 (diff) | |
| parent | b4110900bd82f03b1a5a8d777fa514e78adfadef (diff) | |
| download | rust-4c0116e13ffd4b84e6691cd3b1f09269c4e76728.tar.gz rust-4c0116e13ffd4b84e6691cd3b1f09269c4e76728.zip | |
Auto merge of #56627 - alexcrichton:update-cargo, r=alexcrichton
Update Cargo submodule and its dependencies Hopefully just another routine update! So far this starts to enable the `std::arch` in stage0 builds of rustc. This means that we may need stage0/not(stage0) in stdsimd itself, but more and more code is starting to use `std::arch` so I think it's time to start shifting the balance of work here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/lib.rs | 2 | ||||
| -rw-r--r-- | src/libstd/lib.rs | 7 | ||||
| -rw-r--r-- | src/libsyntax_pos/analyze_source_file.rs | 3 | ||||
| m--------- | src/tools/cargo | 0 | ||||
| -rw-r--r-- | src/tools/rustc-workspace-hack/Cargo.toml | 6 | ||||
| -rw-r--r-- | src/tools/tidy/src/deps.rs | 18 |
6 files changed, 25 insertions, 11 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index 1287e11cff4..a51674fbfc7 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -251,9 +251,7 @@ macro_rules! vector_impl { ($([$f:ident, $($args:tt)*]),*) => { $($f!($($args)*) #[path = "../stdsimd/coresimd/mod.rs"] #[allow(missing_docs, missing_debug_implementations, dead_code, unused_imports)] #[unstable(feature = "stdsimd", issue = "48556")] -#[cfg(not(stage0))] // allow changes to how stdsimd works in stage0 mod coresimd; #[stable(feature = "simd_arch", since = "1.27.0")] -#[cfg(not(stage0))] pub use coresimd::arch; diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 66771b3c4a2..90c8eaf0f7c 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -287,7 +287,7 @@ #![feature(rustc_attrs)] #![feature(rustc_const_unstable)] #![feature(std_internals)] -#![cfg_attr(not(stage0), feature(stdsimd))] +#![feature(stdsimd)] #![feature(shrink_to)] #![feature(slice_concat_ext)] #![feature(slice_internals)] @@ -514,18 +514,17 @@ pub mod rt; #[path = "../stdsimd/stdsimd/mod.rs"] #[allow(missing_debug_implementations, missing_docs, dead_code)] #[unstable(feature = "stdsimd", issue = "48556")] -#[cfg(all(not(stage0), not(test)))] +#[cfg(not(test))] mod stdsimd; // A "fake" module needed by the `stdsimd` module to compile, not actually // exported though. -#[cfg(not(stage0))] mod coresimd { pub use core::arch; } #[stable(feature = "simd_arch", since = "1.27.0")] -#[cfg(all(not(stage0), not(test)))] +#[cfg(not(test))] pub use stdsimd::arch; // Include a number of private modules that exist solely to provide diff --git a/src/libsyntax_pos/analyze_source_file.rs b/src/libsyntax_pos/analyze_source_file.rs index 7bc9a1af62c..f9cf0a95721 100644 --- a/src/libsyntax_pos/analyze_source_file.rs +++ b/src/libsyntax_pos/analyze_source_file.rs @@ -47,8 +47,7 @@ pub fn analyze_source_file( } cfg_if! { - if #[cfg(all(any(target_arch = "x86", target_arch = "x86_64"), - not(stage0)))] { + if #[cfg(all(any(target_arch = "x86", target_arch = "x86_64")))] { fn analyze_source_file_dispatch(src: &str, source_file_start_pos: BytePos, lines: &mut Vec<BytePos>, diff --git a/src/tools/cargo b/src/tools/cargo -Subproject 5e85ba14aaa20f8133863373404cb0af69eeef2 +Subproject 28fb20034a5bb42ea589664de2617dd1840506d diff --git a/src/tools/rustc-workspace-hack/Cargo.toml b/src/tools/rustc-workspace-hack/Cargo.toml index 82c262ed565..5acfee28fad 100644 --- a/src/tools/rustc-workspace-hack/Cargo.toml +++ b/src/tools/rustc-workspace-hack/Cargo.toml @@ -50,9 +50,11 @@ features = [ ] [dependencies] -serde_json = { version = "1.0.31", features = ["raw_value"] } -rand = { version = "0.5.5", features = ["i128_support"] } curl-sys = { version = "0.4.13", optional = true } +parking_lot = { version = "0.6", features = ['nightly'] } +rand = { version = "0.5.5", features = ["i128_support"] } +serde_json = { version = "1.0.31", features = ["raw_value"] } +smallvec = { version = "0.6", features = ['union'] } [target.'cfg(not(windows))'.dependencies] openssl = { version = "0.10.12", optional = true } diff --git a/src/tools/tidy/src/deps.rs b/src/tools/tidy/src/deps.rs index 05c974569a3..e2758921f19 100644 --- a/src/tools/tidy/src/deps.rs +++ b/src/tools/tidy/src/deps.rs @@ -52,6 +52,7 @@ const EXCEPTIONS: &[&str] = &[ "ryu", // Apache-2.0, rls/cargo/... (b/c of serde) "bytesize", // Apache-2.0, cargo "im-rc", // MPL-2.0+, cargo + "adler32", // BSD-3-Clause AND Zlib, cargo dep that isn't used ]; /// Which crates to check against the whitelist? @@ -62,12 +63,14 @@ const WHITELIST_CRATES: &[CrateVersion] = &[ /// Whitelist of crates rustc is allowed to depend on. Avoid adding to the list if possible. const WHITELIST: &[Crate] = &[ + Crate("adler32"), Crate("aho-corasick"), Crate("arrayvec"), Crate("atty"), Crate("backtrace"), Crate("backtrace-sys"), Crate("bitflags"), + Crate("build_const"), Crate("byteorder"), Crate("cc"), Crate("cfg-if"), @@ -75,6 +78,8 @@ const WHITELIST: &[Crate] = &[ Crate("chalk-macros"), Crate("cloudabi"), Crate("cmake"), + Crate("crc"), + Crate("crc32fast"), Crate("crossbeam-deque"), Crate("crossbeam-epoch"), Crate("crossbeam-utils"), @@ -100,6 +105,8 @@ const WHITELIST: &[Crate] = &[ Crate("memmap"), Crate("memoffset"), Crate("miniz-sys"), + Crate("miniz_oxide"), + Crate("miniz_oxide_c_api"), Crate("nodrop"), Crate("num_cpus"), Crate("owning_ref"), @@ -109,7 +116,12 @@ const WHITELIST: &[Crate] = &[ Crate("polonius-engine"), Crate("quick-error"), Crate("rand"), + Crate("rand_chacha"), Crate("rand_core"), + Crate("rand_hc"), + Crate("rand_isaac"), + Crate("rand_pcg"), + Crate("rand_xorshift"), Crate("redox_syscall"), Crate("redox_termios"), Crate("regex"), @@ -119,8 +131,12 @@ const WHITELIST: &[Crate] = &[ Crate("rustc-hash"), Crate("rustc-rayon"), Crate("rustc-rayon-core"), + Crate("rustc_version"), Crate("scoped-tls"), Crate("scopeguard"), + Crate("semver"), + Crate("semver-parser"), + Crate("serde"), Crate("smallvec"), Crate("stable_deref_trait"), Crate("tempfile"), @@ -132,9 +148,9 @@ const WHITELIST: &[Crate] = &[ Crate("unicode-width"), Crate("unreachable"), Crate("utf8-ranges"), + Crate("vcpkg"), Crate("version_check"), Crate("void"), - Crate("vcpkg"), Crate("winapi"), Crate("winapi-build"), Crate("winapi-i686-pc-windows-gnu"), |
