We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rustc_data_structures::sync::OnceLock
1 parent 1cf7a05 commit 44ff785Copy full SHA for 44ff785
compiler/rustc_data_structures/src/sync.rs
@@ -97,7 +97,6 @@ mod mode {
97
98
// FIXME(parallel_compiler): Get rid of these aliases across the compiler.
99
100
-pub use std::sync::OnceLock;
101
// Use portable AtomicU64 for targets without native 64-bit atomics
102
#[cfg(target_has_atomic = "64")]
103
pub use std::sync::atomic::AtomicU64;
compiler/rustc_interface/src/passes.rs
@@ -2,14 +2,14 @@ use std::any::Any;
2
use std::ffi::OsString;
3
use std::io::{self, BufWriter, Write};
4
use std::path::{Path, PathBuf};
5
-use std::sync::{Arc, LazyLock};
+use std::sync::{Arc, LazyLock,OnceLock};
6
use std::{env, fs, iter};
7
8
use rustc_ast as ast;
9
use rustc_codegen_ssa::traits::CodegenBackend;
10
use rustc_data_structures::parallel;
11
use rustc_data_structures::steal::Steal;
12
-use rustc_data_structures::sync::{AppendOnlyIndexVec, FreezeLock, OnceLock,WorkerLocal};
+use rustc_data_structures::sync::{AppendOnlyIndexVec, FreezeLock, WorkerLocal};
13
use rustc_expand::base::{ExtCtxt, LintStoreExpand};
14
use rustc_feature::Features;
15
use rustc_fs_util::try_canonicalize;
compiler/rustc_metadata/src/rmeta/decoder.rs
@@ -2,7 +2,7 @@
use std::iter::TrustedLen;
use std::path::Path;
-use std::sync::Arc;
+use std::sync::{Arc,OnceLock};
use std::{io, iter, mem};
pub(super) use cstore_impl::provide;
@@ -11,7 +11,7 @@ use rustc_ast as ast;
use rustc_data_structures::fingerprint::Fingerprint;
use rustc_data_structures::fx::FxIndexMap;
use rustc_data_structures::owned_slice::OwnedSlice;
-use rustc_data_structures::sync::{Lock,OnceLock};
+use rustc_data_structures::sync::Lock;
use rustc_data_structures::unhash::UnhashMap;
16
use rustc_expand::base::{SyntaxExtension, SyntaxExtensionKind};
17
use rustc_expand::proc_macro::{AttrProcMacro, BangProcMacro, DeriveProcMacro};
compiler/rustc_middle/src/mir/basic_blocks.rs
@@ -1,8 +1,9 @@
1
+use std::sync::OnceLock;
+
use rustc_data_structures::fx::FxHashMap;
use rustc_data_structures::graph;
use rustc_data_structures::graph::dominators::{Dominators, dominators};
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
-use rustc_data_structures::sync::OnceLock;
use rustc_index::{IndexSlice, IndexVec};
use rustc_macros::{HashStable, TyDecodable, TyEncodable, TypeFoldable, TypeVisitable};
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
compiler/rustc_query_system/src/query/caches.rs
@@ -1,9 +1,9 @@
use std::fmt::Debug;
use std::hash::Hash;
use rustc_data_structures::sharded::{self, Sharded};
pub use rustc_data_structures::vec_cache::VecCache;
use rustc_hir::def_id::LOCAL_CRATE;
use rustc_index::Idx;
src/doc/rustc-dev-guide/src/parallel-rustc.md
@@ -46,7 +46,6 @@ are implemented differently depending on whether `parallel-compiler` is true.
46
47
| data structure | parallel | non-parallel |
48
| -------------------------------- | --------------------------------------------------- | ------------ |
49
-| OnceCell | std::sync::OnceLock | std::cell::OnceCell |
50
| Lock\<T> | (parking_lot::Mutex\<T>) | (std::cell::RefCell) |
51
| RwLock\<T> | (parking_lot::RwLock\<T>) | (std::cell::RefCell) |
52
| MTRef<'a, T> | &'a T | &'a mut T |
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments