Rollup merge of #86680 - camsteffen:dbg-opt-error, r=petrochenkov
Improve error for missing -Z with debugging option Before: ```text ❯ rustc --unpretty=hir error: Unrecognized option: 'unpretty' ``` After: ```text ❯ rustc --unpretty=hir error: Unrecognized option: 'unpretty'. Did you mean `-Z unpretty`? ```
This commit is contained in:
commit
56ddef8ab8
5 changed files with 19 additions and 4 deletions
|
|
@ -0,0 +1 @@
|
|||
// compile-flags: --llvm-args
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
error: Unrecognized option: 'llvm-args'. Did you mean `-C llvm-args`?
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
// compile-flags: --unpretty=hir
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
error: Unrecognized option: 'unpretty'. Did you mean `-Z unpretty`?
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue