Skip to content

Commit 0898c3e

Browse files
committed
tree-wide: parallel: Fully removed all Lrc, replaced with Arc
1 parent 2c3a45a commit 0898c3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bin/miri.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use std::num::NonZero;
2929
use std::ops::Range;
3030
use std::path::PathBuf;
3131
use std::str::FromStr;
32-
use std::sync::Once;
32+
use std::sync::{Arc, Once};
3333
use std::sync::atomic::{AtomicI32, AtomicU32, Ordering};
3434

3535
use miri::{
@@ -38,7 +38,6 @@ use miri::{
3838
};
3939
use rustc_abi::ExternAbi;
4040
use rustc_data_structures::sync;
41-
use rustc_data_structures::sync::Lrc;
4241
use rustc_driver::Compilation;
4342
use rustc_hir::def_id::LOCAL_CRATE;
4443
use rustc_hir::{self as hir, Node};
@@ -134,7 +133,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
134133
// HACK: rustc will emit "crate ... required to be available in rlib format, but
135134
// was not found in this form" errors once we use `tcx.dependency_formats()` if
136135
// there's no rlib provided, so setting a dummy path here to workaround those errors.
137-
Lrc::make_mut(&mut crate_source).rlib = Some((PathBuf::new(), PathKind::All));
136+
Arc::make_mut(&mut crate_source).rlib = Some((PathBuf::new(), PathKind::All));
138137
crate_source
139138
};
140139
});

0 commit comments

Comments
 (0)