Move/rename lazy::Sync{OnceCell,Lazy}
to sync::{Once,Lazy}Lock
This commit is contained in:
parent
7c360dc117
commit
c1a2db3372
32 changed files with 847 additions and 819 deletions
|
@ -7,12 +7,12 @@ use rustc_ast as ast;
|
|||
use rustc_data_structures::stable_map::StableMap;
|
||||
use rustc_span::symbol::{sym, Symbol};
|
||||
|
||||
use std::lazy::SyncLazy;
|
||||
use std::sync::LazyLock;
|
||||
|
||||
macro_rules! weak_lang_items {
|
||||
($($name:ident, $item:ident, $sym:ident;)*) => (
|
||||
|
||||
pub static WEAK_ITEMS_REFS: SyncLazy<StableMap<Symbol, LangItem>> = SyncLazy::new(|| {
|
||||
pub static WEAK_ITEMS_REFS: LazyLock<StableMap<Symbol, LangItem>> = LazyLock::new(|| {
|
||||
let mut map = StableMap::default();
|
||||
$(map.insert(sym::$name, LangItem::$item);)*
|
||||
map
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue