diff options
| author | khyperia <953151+khyperia@users.noreply.github.com> | 2022-09-08 15:37:15 +0200 |
|---|---|---|
| committer | khyperia <953151+khyperia@users.noreply.github.com> | 2022-09-22 22:18:30 +0200 |
| commit | 9a206a78eb1c4d73bd55432e02a5a29d871afb7c (patch) | |
| tree | d6867c2c342b498e6e850a32e283a0e952015fb9 /compiler/rustc_driver/src/lib.rs | |
| parent | 89e4e1f1b32e2a88cf696337f77e10273142c1a0 (diff) | |
| download | rust-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.rs | 5 |
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 |
