This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 4bbd7e4
committed
Auto merge of rust-lang#6696 - dtolnay-contrib:regex, r=Manishearth
Downgrade trivial_regex to nursery
See rust-lang#6690. I think there is still value in a trivial_regex lint, but only if clippy can tell that the regex is only ever constructed and applied to a single input.
```rust
let regex = Regex::new("trivial_regex")?;
println!("{}", regex.is_match(s));
// `regex` never used again
```
---
changelog: remove `trivial_regex` from default set of enabled lints2 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1628 | 1628 | | |
1629 | 1629 | | |
1630 | 1630 | | |
1631 | | - | |
1632 | 1631 | | |
1633 | 1632 | | |
1634 | 1633 | | |
| |||
1791 | 1790 | | |
1792 | 1791 | | |
1793 | 1792 | | |
1794 | | - | |
1795 | 1793 | | |
1796 | 1794 | | |
1797 | 1795 | | |
| |||
2021 | 2019 | | |
2022 | 2020 | | |
2023 | 2021 | | |
| 2022 | + | |
2024 | 2023 | | |
2025 | 2024 | | |
2026 | 2025 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | | - | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
0 commit comments