Skip to content

Commit

Permalink
Auto merge of #76159 - matklad:rollup-8jydjg3, r=matklad
Browse files Browse the repository at this point in the history
Rollup of 5 pull requests

Successful merges:

 - #75938 (Added some `min_const_generics` revisions into `const_generics` tests)
 - #76050 (Remove unused function)
 - #76075 (datastructures: replace `once_cell` crate with an impl from std)
 - #76115 (Restore public visibility on some parsing functions for rustfmt)
 - #76127 (rustbuild: Remove one LLD workaround)

Failed merges:

r? @ghost
  • Loading branch information
bors committed Aug 31, 2020
2 parents 3b4797c + 9caf08f commit 1fd8636
Show file tree
Hide file tree
Showing 122 changed files with 915 additions and 668 deletions.
1 change: 0 additions & 1 deletion Cargo.lock
Expand Up @@ -3420,7 +3420,6 @@ dependencies = [
"lazy_static",
"libc",
"measureme",
"once_cell",
"parking_lot 0.10.2",
"rustc-hash",
"rustc-rayon",
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_data_structures/Cargo.toml
Expand Up @@ -13,7 +13,6 @@ indexmap = "1.5.1"
tracing = "0.1"
jobserver_crate = { version = "0.1.13", package = "jobserver" }
lazy_static = "1"
once_cell = { version = "1", features = ["parking_lot"] }
rustc_serialize = { path = "../rustc_serialize" }
rustc_macros = { path = "../rustc_macros" }
rustc_graphviz = { path = "../rustc_graphviz" }
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_data_structures/src/lib.rs
Expand Up @@ -26,6 +26,7 @@
#![feature(extend_one)]
#![feature(const_panic)]
#![feature(const_generics)]
#![feature(once_cell)]
#![allow(rustc::default_hash_types)]

#[macro_use]
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_data_structures/src/sync.rs
Expand Up @@ -229,7 +229,7 @@ cfg_if! {
pub use std::cell::RefMut as LockGuard;
pub use std::cell::RefMut as MappedLockGuard;

pub use once_cell::unsync::OnceCell;
pub use std::lazy::OnceCell;

use std::cell::RefCell as InnerRwLock;
use std::cell::RefCell as InnerLock;
Expand Down Expand Up @@ -314,7 +314,7 @@ cfg_if! {
pub use parking_lot::MutexGuard as LockGuard;
pub use parking_lot::MappedMutexGuard as MappedLockGuard;

pub use once_cell::sync::OnceCell;
pub use std::lazy::SyncOnceCell as OnceCell;

pub use std::sync::atomic::{AtomicBool, AtomicUsize, AtomicU32, AtomicU64};

Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_driver/src/lib.rs
Expand Up @@ -6,6 +6,7 @@

#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![feature(nll)]
#![feature(once_cell)]
#![recursion_limit = "256"]

#[macro_use]
Expand Down
5 changes: 0 additions & 5 deletions compiler/rustc_expand/src/lib.rs
Expand Up @@ -39,11 +39,6 @@ mod tests;
mod parse {
#[cfg(test)]
mod tests;
#[cfg(test)]
mod lexer {
#[cfg(test)]
mod tests;
}
}
#[cfg(test)]
mod tokenstream {
Expand Down
252 changes: 0 additions & 252 deletions compiler/rustc_expand/src/parse/lexer/tests.rs

This file was deleted.

1 change: 1 addition & 0 deletions compiler/rustc_interface/src/lib.rs
Expand Up @@ -4,6 +4,7 @@
#![feature(nll)]
#![feature(generator_trait)]
#![feature(generators)]
#![feature(once_cell)]
#![recursion_limit = "256"]

mod callbacks;
Expand Down

0 comments on commit 1fd8636

Please sign in to comment.