From 5131c69dd67d9fc61d593803b252cf93ec369c18 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 1 Apr 2020 15:26:54 +1100 Subject: [PATCH] Rename `modules_config` as `regular_config`. That way it matches `ModuleKind::Regular`. --- src/librustc_codegen_ssa/back/write.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/librustc_codegen_ssa/back/write.rs b/src/librustc_codegen_ssa/back/write.rs index b06ad5b2f1c14..91ba7ed5df3ca 100644 --- a/src/librustc_codegen_ssa/back/write.rs +++ b/src/librustc_codegen_ssa/back/write.rs @@ -421,7 +421,7 @@ pub fn start_async_codegen( let linker_info = LinkerInfo::new(tcx); let crate_info = CrateInfo::new(tcx); - let modules_config = ModuleConfig::new(ModuleKind::Regular, sess, no_builtins); + let regular_config = ModuleConfig::new(ModuleKind::Regular, sess, no_builtins); let metadata_config = ModuleConfig::new(ModuleKind::Metadata, sess, no_builtins); let allocator_config = ModuleConfig::new(ModuleKind::Allocator, sess, no_builtins); @@ -437,7 +437,7 @@ pub fn start_async_codegen( coordinator_receive, total_cgus, sess.jobserver.clone(), - Arc::new(modules_config), + Arc::new(regular_config), Arc::new(metadata_config), Arc::new(allocator_config), coordinator_send.clone(), @@ -937,7 +937,7 @@ fn start_executing_work( coordinator_receive: Receiver>, total_cgus: usize, jobserver: Client, - modules_config: Arc, + regular_config: Arc, metadata_config: Arc, allocator_config: Arc, tx_to_llvm_workers: Sender>, @@ -1020,7 +1020,7 @@ fn start_executing_work( coordinator_send, diag_emitter: shared_emitter.clone(), output_filenames: tcx.output_filenames(LOCAL_CRATE), - regular_module_config: modules_config, + regular_module_config: regular_config, metadata_module_config: metadata_config, allocator_module_config: allocator_config, tm_factory: TargetMachineFactory(backend.target_machine_factory(tcx.sess, ol, false)),