about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoão Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>2020-10-08 09:03:11 -0300
committerJoão Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>2020-10-08 09:03:11 -0300
commitcc26924cce6d6e6ee7913ba5026d205eefd42702 (patch)
treeb39e6c35be956d2c527a32baaf3e93184f4cafd8
parent15150c07eaeec50138a9c96c5bdecbdf92c3101e (diff)
downloadrust-cc26924cce6d6e6ee7913ba5026d205eefd42702.tar.gz
rust-cc26924cce6d6e6ee7913ba5026d205eefd42702.zip
clippy_lint: Extend BoxedLocal ignored ABI to all non-rust ABIs.
-rw-r--r--clippy_lints/src/escape.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/escape.rs b/clippy_lints/src/escape.rs
index b222475486d..8b022912573 100644
--- a/clippy_lints/src/escape.rs
+++ b/clippy_lints/src/escape.rs
@@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for BoxedLocal {
         hir_id: HirId,
     ) {
         if let Some(header) = fn_kind.header() {
-            if header.abi == Abi::C {
+            if header.abi != Abi::Rust {
                 return;
             }
         }