@@ -14,7 +14,6 @@ use std::fmt;
1414use std:: hash:: { Hash , Hasher } ;
1515use std:: ops:: Deref ;
1616use std:: rc:: Rc ;
17- use std:: sync:: Arc ;
1817
1918use super :: BuildOutput ;
2019
@@ -72,7 +71,7 @@ pub struct UnitInner {
7271 ///
7372 /// [`BuildContext::extra_args_for`]: crate::core::compiler::build_context::BuildContext::extra_args_for
7473 /// [`TargetInfo.rustflags`]: crate::core::compiler::build_context::TargetInfo::rustflags
75- pub rustflags : Arc < [ String ] > ,
74+ pub rustflags : Rc < [ String ] > ,
7675 /// Extra compiler flags to pass to `rustdoc` for a given unit.
7776 ///
7877 /// Although it depends on the caller, in the current Cargo implementation,
@@ -83,7 +82,7 @@ pub struct UnitInner {
8382 ///
8483 /// [`BuildContext::extra_args_for`]: crate::core::compiler::build_context::BuildContext::extra_args_for
8584 /// [`TargetInfo.rustdocflags`]: crate::core::compiler::build_context::TargetInfo::rustdocflags
86- pub rustdocflags : Arc < [ String ] > ,
85+ pub rustdocflags : Rc < [ String ] > ,
8786 /// Build script override for the given library name.
8887 ///
8988 /// Any package with a `links` value for the given library name will skip
@@ -232,8 +231,8 @@ impl UnitInterner {
232231 kind : CompileKind ,
233232 mode : CompileMode ,
234233 features : Vec < InternedString > ,
235- rustflags : Arc < [ String ] > ,
236- rustdocflags : Arc < [ String ] > ,
234+ rustflags : Rc < [ String ] > ,
235+ rustdocflags : Rc < [ String ] > ,
237236 links_overrides : Rc < BTreeMap < String , BuildOutput > > ,
238237 is_std : bool ,
239238 dep_hash : u64 ,
0 commit comments