mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Use Rc insted of Arc when clippy::arc_with_non_send_sync
This commit is contained in:
parent
0a6f67109c
commit
97bf02bef3
@ -7,7 +7,7 @@ use cargo_util::ProcessBuilder;
|
||||
use serde::ser;
|
||||
use std::cell::RefCell;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
use std::rc::Rc;
|
||||
use std::thread::available_parallelism;
|
||||
|
||||
/// Configuration information for a rustc build.
|
||||
@ -35,7 +35,7 @@ pub struct BuildConfig {
|
||||
pub primary_unit_rustc: Option<ProcessBuilder>,
|
||||
/// A thread used by `cargo fix` to receive messages on a socket regarding
|
||||
/// the success/failure of applying fixes.
|
||||
pub rustfix_diagnostic_server: Arc<RefCell<Option<RustfixDiagnosticServer>>>,
|
||||
pub rustfix_diagnostic_server: Rc<RefCell<Option<RustfixDiagnosticServer>>>,
|
||||
/// The directory to copy final artifacts to. Note that even if `out_dir` is
|
||||
/// set, a copy of artifacts still could be found a `target/(debug\release)`
|
||||
/// as usual.
|
||||
@ -113,7 +113,7 @@ impl BuildConfig {
|
||||
build_plan: false,
|
||||
unit_graph: false,
|
||||
primary_unit_rustc: None,
|
||||
rustfix_diagnostic_server: Arc::new(RefCell::new(None)),
|
||||
rustfix_diagnostic_server: Rc::new(RefCell::new(None)),
|
||||
export_dir: None,
|
||||
future_incompat_report: false,
|
||||
timing_outputs: Vec::new(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user