@@ -1051,7 +1051,7 @@ fn project_json_to_crate_graph(
10511051 * edition,
10521052 display_name. clone ( ) ,
10531053 version. clone ( ) ,
1054- Arc :: new ( cfg_options) ,
1054+ cfg_options,
10551055 None ,
10561056 env,
10571057 if let Some ( name) = display_name. clone ( ) {
@@ -1341,7 +1341,7 @@ fn detached_file_to_crate_graph(
13411341 }
13421342 cfg_options. insert_atom ( sym:: rust_analyzer. clone ( ) ) ;
13431343 override_cfg. apply ( & mut cfg_options, "" ) ;
1344- let cfg_options = Arc :: new ( cfg_options) ;
1344+ let cfg_options = cfg_options;
13451345
13461346 let file_id = match load ( detached_file) {
13471347 Some ( file_id) => file_id,
@@ -1526,7 +1526,7 @@ fn add_target_crate_root(
15261526 edition,
15271527 Some ( CrateDisplayName :: from_canonical_name ( cargo_name) ) ,
15281528 Some ( pkg. version . to_string ( ) ) ,
1529- Arc :: new ( cfg_options) ,
1529+ cfg_options,
15301530 potential_cfg_options,
15311531 env,
15321532 origin,
@@ -1680,13 +1680,13 @@ fn sysroot_to_crate_graph(
16801680 extend_crate_graph_with_sysroot ( crate_graph, sysroot_cg, sysroot_pm)
16811681 }
16821682 RustLibSrcWorkspace :: Stitched ( stitched) => {
1683- let cfg_options = Arc :: new ( {
1683+ let cfg_options = {
16841684 let mut cfg_options = CfgOptions :: default ( ) ;
16851685 cfg_options. extend ( rustc_cfg) ;
16861686 cfg_options. insert_atom ( sym:: debug_assertions. clone ( ) ) ;
16871687 cfg_options. insert_atom ( sym:: miri. clone ( ) ) ;
16881688 cfg_options
1689- } ) ;
1689+ } ;
16901690 let sysroot_crates: FxHashMap <
16911691 crate :: sysroot:: stitched:: RustLibSrcCrate ,
16921692 CrateBuilderId ,
0 commit comments