@@ -89,7 +89,7 @@ impl ops::Index<CrateBuilderId> for CrateGraphBuilder {
8989pub struct CrateBuilder {
9090 pub basic : CrateDataBuilder ,
9191 pub extra : ExtraCrateData ,
92- pub cfg_options : Arc < CfgOptions > ,
92+ pub cfg_options : CfgOptions ,
9393 pub env : Env ,
9494 ws_data : Arc < CrateWorkspaceData > ,
9595}
@@ -311,6 +311,7 @@ pub struct CrateData<Id> {
311311pub type CrateDataBuilder = CrateData < CrateBuilderId > ;
312312pub type BuiltCrateData = CrateData < Crate > ;
313313
314+ /// Crate data unrelated to analysis.
314315#[ derive( Debug , Clone , PartialEq , Eq ) ]
315316pub struct ExtraCrateData {
316317 pub version : Option < String > ,
@@ -402,9 +403,8 @@ pub struct Crate {
402403 // This is in `Arc` because it is shared for all crates in a workspace.
403404 #[ return_ref]
404405 pub workspace_data : Arc < CrateWorkspaceData > ,
405- // FIXME: Remove this `Arc`.
406406 #[ return_ref]
407- pub cfg_options : Arc < CfgOptions > ,
407+ pub cfg_options : CfgOptions ,
408408 #[ return_ref]
409409 pub env : Env ,
410410}
@@ -420,7 +420,7 @@ impl CrateGraphBuilder {
420420 edition : Edition ,
421421 display_name : Option < CrateDisplayName > ,
422422 version : Option < String > ,
423- cfg_options : Arc < CfgOptions > ,
423+ cfg_options : CfgOptions ,
424424 potential_cfg_options : Option < CfgOptions > ,
425425 mut env : Env ,
426426 origin : CrateOrigin ,
@@ -601,12 +601,6 @@ impl CrateGraphBuilder {
601601 self . arena . iter ( ) . map ( |( idx, _) | idx)
602602 }
603603
604- // FIXME: used for fixing up the toolchain sysroot, should be removed and done differently
605- #[ doc( hidden) ]
606- pub fn iter_mut ( & mut self ) -> impl Iterator < Item = ( CrateBuilderId , & mut CrateBuilder ) > + ' _ {
607- self . arena . iter_mut ( )
608- }
609-
610604 /// Returns an iterator over all transitive dependencies of the given crate,
611605 /// including the crate itself.
612606 pub fn transitive_deps ( & self , of : CrateBuilderId ) -> impl Iterator < Item = CrateBuilderId > {
0 commit comments