summary refs log tree commit diff
path: root/compiler/rustc_driver_impl
diff options
context:
space:
mode:
authorJieyou Xu <jieyouxu@outlook.com>2025-03-16 12:58:53 +0800
committerJieyou Xu <jieyouxu@outlook.com>2025-03-16 21:56:02 +0800
commit24edbfbc2433be60207daefbdf1d59ed3b1cbf7d (patch)
tree4a4aa9c6260a66f6565c1f91e97b5768a31ee0af /compiler/rustc_driver_impl
parentf9eabc28d94aec376f7649ba785c86e922702a37 (diff)
downloadrust-24edbfbc2433be60207daefbdf1d59ed3b1cbf7d.tar.gz
rust-24edbfbc2433be60207daefbdf1d59ed3b1cbf7d.zip
Rename `PrintKind::{AllTargetSpecs,TargetSpec}` to `{AllTargetSpecsJson,TargetSpecJson}`
To correspond to their actual print request names, `target-spec-json`
and `all-target-specs-json`, and for consistency with other print name
<-> print kind mappings.
Diffstat (limited to 'compiler/rustc_driver_impl')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index ed5662da16d..2d636da4a12 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -649,10 +649,10 @@ fn print_crate_info(
             HostTuple => println_info!("{}", rustc_session::config::host_tuple()),
             Sysroot => println_info!("{}", sess.sysroot.display()),
             TargetLibdir => println_info!("{}", sess.target_tlib_path.dir.display()),
-            TargetSpec => {
+            TargetSpecJson => {
                 println_info!("{}", serde_json::to_string_pretty(&sess.target.to_json()).unwrap());
             }
-            AllTargetSpecs => {
+            AllTargetSpecsJson => {
                 let mut targets = BTreeMap::new();
                 for name in rustc_target::spec::TARGETS {
                     let triple = TargetTuple::from_tuple(name);