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_lints | |
| parent | db193c1c9da7aa97d25815c5d2020d2bf5bbc038 (diff) | |
| download | rust-e65cefcf6f22cb482bcd2ae40c99f6baab8d99bc.tar.gz rust-e65cefcf6f22cb482bcd2ae40c99f6baab8d99bc.zip | |
Propagate errors rather than using return_if_err
Diffstat (limited to 'clippy_lints')
| -rw-r--r-- | clippy_lints/src/escape.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/lib.rs | 1 | ||||
| -rw-r--r-- | clippy_lints/src/loops/mut_range_bound.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/methods/iter_overeager_cloned.rs | 3 | ||||
| -rw-r--r-- | clippy_lints/src/needless_pass_by_ref_mut.rs | 4 | ||||
| -rw-r--r-- | clippy_lints/src/needless_pass_by_value.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/operators/assign_op_pattern.rs | 4 | ||||
| -rw-r--r-- | clippy_lints/src/unwrap.rs | 4 |
8 files changed, 11 insertions, 11 deletions
diff --git a/clippy_lints/src/escape.rs b/clippy_lints/src/escape.rs index 6392ca13df1..6715de52649 100644 --- a/clippy_lints/src/escape.rs +++ b/clippy_lints/src/escape.rs @@ -104,7 +104,7 @@ impl<'tcx> LateLintPass<'tcx> for BoxedLocal { too_large_for_stack: self.too_large_for_stack, }; - ExprUseVisitor::for_clippy(cx, fn_def_id, &mut v).consume_body(body); + ExprUseVisitor::for_clippy(cx, fn_def_id, &mut v).consume_body(body).into_ok(); for node in v.set { span_lint_hir( diff --git a/clippy_lints/src/lib.rs b/clippy_lints/src/lib.rs index 2c44c3881aa..a8bfbbdd9ec 100644 --- a/clippy_lints/src/lib.rs +++ b/clippy_lints/src/lib.rs @@ -8,6 +8,7 @@ #![feature(never_type)] #![feature(rustc_private)] #![feature(stmt_expr_attributes)] +#![feature(unwrap_infallible)] #![recursion_limit = "512"] #![cfg_attr(feature = "deny-warnings", deny(warnings))] #