Skip to content

Commit

Permalink
clippy_lint: Extend BoxedLocal ignored ABI to all non-rust ABIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
JPTIZ committed Oct 8, 2020
1 parent 15150c0 commit cc26924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/escape.rs
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit cc26924

Please sign in to comment.