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:
Yuki Okushi 2021-07-01 05:20:57 +09:00 committed by GitHub
commit 56ddef8ab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 4 deletions

View file

@ -0,0 +1 @@
// compile-flags: --llvm-args

View file

@ -0,0 +1,2 @@
error: Unrecognized option: 'llvm-args'. Did you mean `-C llvm-args`?

View file

@ -0,0 +1 @@
// compile-flags: --unpretty=hir

View file

@ -0,0 +1,2 @@
error: Unrecognized option: 'unpretty'. Did you mean `-Z unpretty`?