diff options
| author | klensy <klensy@users.noreply.github.com> | 2022-06-05 07:02:32 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2022-06-05 07:02:32 +0300 |
| commit | 2d2577cdec6121e57facd55a6355ed8bf0c2c9b1 (patch) | |
| tree | 838d1f016b2a6cc612cd04fa231561b0f6724ee8 /compiler/rustc_driver/src | |
| parent | c7b0452ece11bf714f7cf2003747231931504d59 (diff) | |
| download | rust-2d2577cdec6121e57facd55a6355ed8bf0c2c9b1.tar.gz rust-2d2577cdec6121e57facd55a6355ed8bf0c2c9b1.zip | |
typo: `-Zcodegen-backend=llvm -Cpasses=list` should work now
Diffstat (limited to 'compiler/rustc_driver/src')
| -rw-r--r-- | compiler/rustc_driver/src/lib.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index 179a184536e..1a7972716d3 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -1055,13 +1055,7 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> { } if cg_flags.iter().any(|x| *x == "passes=list") { - let backend_name = debug_flags.iter().find_map(|x| { - if x.starts_with("codegen-backend=") { - Some(&x["codegen-backends=".len()..]) - } else { - None - } - }); + let backend_name = debug_flags.iter().find_map(|x| x.strip_prefix("codegen-backend=")); get_codegen_backend(&None, backend_name).print_passes(); return None; } |
