rust/clippy_config
bors 5459429f92 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`.
2024-05-16 21:13:34 +00:00
..
src Auto merge of #12803 - wutchzone:panic-in-tests, r=y21 2024-05-16 21:13:34 +00:00
Cargo.toml Bump Clippy version -> 0.1.80 2024-05-02 14:21:19 +02:00