diff options
| author | bors <bors@rust-lang.org> | 2024-05-16 21:13:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-16 21:13:34 +0000 |
| commit | 5459429f923071e450ac1f92a28a2360da413414 (patch) | |
| tree | 7b659f8cd61666cd1a3db6d7afc29436b3adf364 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 6c8ff3f894909a8c46e201b8779ebb365fd2e84d (diff) | |
| parent | c342a61564ee2632a2896cc4a3b7bbecb5720bea (diff) | |
| download | rust-5459429f923071e450ac1f92a28a2360da413414.tar.gz rust-5459429f923071e450ac1f92a28a2360da413414.zip | |
Auto merge of #12803 - wutchzone:panic-in-tests, r=y21
Add configuration option for ignoring `panic!()` in tests
```
changelog: [`panic`]: Now can be disabled in tests with the `allow-panic-in-tests` option
```
I often find myself using `panic!(…)` in tests a lot, where I often do something like:
```rust
match enam {
Enam::A => …,
Enam::B => …,
_ => panic!("This should not happen at all."),
}
```
I think this patch should go nicely with already existing `allow-unwrap-in-tests` and `allow-expect-in-tests`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
