]> git.lizzy.rs Git - rust.git/commit
Display all emission types in error msg if user inputs invalid option.
authorCorey Farwell <coreyf@rwell.org>
Sun, 5 Nov 2017 14:20:59 +0000 (09:20 -0500)
committerCorey Farwell <coreyf@rwell.org>
Tue, 7 Nov 2017 01:36:48 +0000 (20:36 -0500)
commitc3ea358121e493ace14308e153b70692439fb154
treef709c9bec26fe46569febded999b1a30d9b07c61
parent4efcc660f09ce3e83d194889f6d1161bf865f788
Display all emission types in error msg if user inputs invalid option.

before:

```
> rustc --emit foo
error: unknown emission type: `foo`
```

after:

```
> rustc --emit foo
error: unknown emission type: `foo` - expected one of: `llvm-bc`, `asm`, `llvm-ir`, `mir`, `obj`, `metadata`, `link`, `dep-info`
```
src/librustc/session/config.rs