We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 738ed38 commit 15150c0Copy full SHA for 15150c0
clippy_lints/src/escape.rs
@@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for BoxedLocal {
68
hir_id: HirId,
69
) {
70
if let Some(header) = fn_kind.header() {
71
- if header.abi == Abi::Cdecl {
+ if header.abi == Abi::C {
72
return;
73
}
74
tests/ui/escape_analysis.rs
@@ -174,3 +174,8 @@ mod issue_3739 {
174
};
175
176
177
+
178
+/// Issue #5542
179
+///
180
+/// This shouldn't warn for `boxed_local` as it is a function implemented in C.
181
+pub extern "C" fn do_now_warn_me(_c_pointer: Box<String>) -> () {}
0 commit comments