@@ -14,7 +14,6 @@ use std::fmt;
14
14
use std:: hash:: { Hash , Hasher } ;
15
15
use std:: ops:: Deref ;
16
16
use std:: rc:: Rc ;
17
- use std:: sync:: Arc ;
18
17
19
18
use super :: BuildOutput ;
20
19
@@ -72,7 +71,7 @@ pub struct UnitInner {
72
71
///
73
72
/// [`BuildContext::extra_args_for`]: crate::core::compiler::build_context::BuildContext::extra_args_for
74
73
/// [`TargetInfo.rustflags`]: crate::core::compiler::build_context::TargetInfo::rustflags
75
- pub rustflags : Arc < [ String ] > ,
74
+ pub rustflags : Rc < [ String ] > ,
76
75
/// Extra compiler flags to pass to `rustdoc` for a given unit.
77
76
///
78
77
/// Although it depends on the caller, in the current Cargo implementation,
@@ -83,7 +82,7 @@ pub struct UnitInner {
83
82
///
84
83
/// [`BuildContext::extra_args_for`]: crate::core::compiler::build_context::BuildContext::extra_args_for
85
84
/// [`TargetInfo.rustdocflags`]: crate::core::compiler::build_context::TargetInfo::rustdocflags
86
- pub rustdocflags : Arc < [ String ] > ,
85
+ pub rustdocflags : Rc < [ String ] > ,
87
86
/// Build script override for the given library name.
88
87
///
89
88
/// Any package with a `links` value for the given library name will skip
@@ -232,8 +231,8 @@ impl UnitInterner {
232
231
kind : CompileKind ,
233
232
mode : CompileMode ,
234
233
features : Vec < InternedString > ,
235
- rustflags : Arc < [ String ] > ,
236
- rustdocflags : Arc < [ String ] > ,
234
+ rustflags : Rc < [ String ] > ,
235
+ rustdocflags : Rc < [ String ] > ,
237
236
links_overrides : Rc < BTreeMap < String , BuildOutput > > ,
238
237
is_std : bool ,
239
238
dep_hash : u64 ,
0 commit comments