Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit cc26924

Browse files
committed
clippy_lint: Extend BoxedLocal ignored ABI to all non-rust ABIs.
1 parent 15150c0 commit cc26924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/escape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for BoxedLocal {
6868
hir_id: HirId,
6969
) {
7070
if let Some(header) = fn_kind.header() {
71-
if header.abi == Abi::C {
71+
if header.abi != Abi::Rust {
7272
return;
7373
}
7474
}

0 commit comments

Comments
 (0)