about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-03-21 11:40:13 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-03-21 11:50:40 +1100
commit5744be2727a7ebc7726a6e23d517a41cc1e8ffe2 (patch)
tree99b0375318281d8ec09e51664fabc12e7637c9c6 /compiler/rustc_interface/src
parent23ee523ea61355c332481566bb5a093f29cdce59 (diff)
downloadrust-5744be2727a7ebc7726a6e23d517a41cc1e8ffe2.tar.gz
rust-5744be2727a7ebc7726a6e23d517a41cc1e8ffe2.zip
Rename some `target_cfg` variables as `target`.
Because the underlying type is called `Target`. (There is also a
separate type called `TargetCfg`.)
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index c796448e5ee..8a27e9a6453 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -41,7 +41,7 @@ fn mk_session(matches: getopts::Matches) -> (Session, Cfg) {
 
     let sysroot = filesearch::materialize_sysroot(sessopts.maybe_sysroot.clone());
 
-    let target_cfg = rustc_session::config::build_target_config(&early_dcx, &sessopts, &sysroot);
+    let target = rustc_session::config::build_target_config(&early_dcx, &sessopts, &sysroot);
 
     let sess = build_session(
         early_dcx,
@@ -52,7 +52,7 @@ fn mk_session(matches: getopts::Matches) -> (Session, Cfg) {
         vec![],
         Default::default(),
         None,
-        target_cfg,
+        target,
         sysroot,
         "",
         None,