about summary refs log tree commit diff
path: root/compiler/rustc_driver/src/lib.rs
diff options
context:
space:
mode:
authorkhyperia <953151+khyperia@users.noreply.github.com>2022-09-08 15:37:15 +0200
committerkhyperia <953151+khyperia@users.noreply.github.com>2022-09-22 22:18:30 +0200
commit9a206a78eb1c4d73bd55432e02a5a29d871afb7c (patch)
treed6867c2c342b498e6e850a32e283a0e952015fb9 /compiler/rustc_driver/src/lib.rs
parent89e4e1f1b32e2a88cf696337f77e10273142c1a0 (diff)
downloadrust-9a206a78eb1c4d73bd55432e02a5a29d871afb7c.tar.gz
rust-9a206a78eb1c4d73bd55432e02a5a29d871afb7c.zip
Improve the help message for an invalid calling convention
Diffstat (limited to 'compiler/rustc_driver/src/lib.rs')
-rw-r--r--compiler/rustc_driver/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs
index 8fb9508194b..c768935eb62 100644
--- a/compiler/rustc_driver/src/lib.rs
+++ b/compiler/rustc_driver/src/lib.rs
@@ -742,6 +742,11 @@ fn print_crate_info(
                     println!("{}", cfg);
                 }
             }
+            CallingConventions => {
+                let mut calling_conventions = rustc_target::spec::abi::all_names();
+                calling_conventions.sort_unstable();
+                println!("{}", calling_conventions.join("\n"));
+            }
             RelocationModels
             | CodeModels
             | TlsModels