diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-09 11:33:53 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-12 12:50:18 -0400 |
| commit | e65cefcf6f22cb482bcd2ae40c99f6baab8d99bc (patch) | |
| tree | 6393c2c34c6e2f6c8c1cdc03866221b2221c7952 /clippy_utils/src | |
| parent | db193c1c9da7aa97d25815c5d2020d2bf5bbc038 (diff) | |
| download | rust-e65cefcf6f22cb482bcd2ae40c99f6baab8d99bc.tar.gz rust-e65cefcf6f22cb482bcd2ae40c99f6baab8d99bc.zip | |
Propagate errors rather than using return_if_err
Diffstat (limited to 'clippy_utils/src')
| -rw-r--r-- | clippy_utils/src/lib.rs | 1 | ||||
| -rw-r--r-- | clippy_utils/src/sugg.rs | 4 | ||||
| -rw-r--r-- | clippy_utils/src/usage.rs | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/clippy_utils/src/lib.rs b/clippy_utils/src/lib.rs index a49414a058b..99d7aba2f7a 100644 --- a/clippy_utils/src/lib.rs +++ b/clippy_utils/src/lib.rs @@ -7,6 +7,7 @@ #![feature(never_type)] #![feature(rustc_private)] #![feature(assert_matches)] +#![feature(unwrap_infallible)] #![recursion_limit = "512"] #![cfg_attr(feature = "deny-warnings", deny(warnings))] #