about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-03-14 17:26:13 +0100
committerGitHub <noreply@github.com>2025-03-14 17:26:13 +0100
commitf8842bd75261b95cc6ec83a004dd881b9b9f656c (patch)
tree0d8e1e7a2f71903636a83a5056a1e677b9a9889b /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentf7b43542838f0a4a6cfdb17fbeadf45002042a77 (diff)
parent90bf2b159a86d19c37122334ebf4d4a0461dd77b (diff)
downloadrust-f8842bd75261b95cc6ec83a004dd881b9b9f656c.tar.gz
rust-f8842bd75261b95cc6ec83a004dd881b9b9f656c.zip
Rollup merge of #134720 - malezjaa:feat/crate-type-valid-values, r=jieyouxu
Display valid crate types in error message for --crate-type flag

This PR improves the error message for the --crate-type flag. When an invalid crate type is provided, the compiler will now show a list of valid options.

### Before
![image](https://github.com/user-attachments/assets/4922e4e5-eeca-40cd-ac1c-1c6319a81aee)

### After
![image](https://github.com/user-attachments/assets/67ea1f35-aa41-4e4f-8691-47c273d0cff9)

I based the implementation on `OutputType::shorthands_display`

Closes #70183
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions