]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/escape_analysis.rs
Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup
[rust.git] / src / tools / clippy / tests / ui / escape_analysis.rs
index c0a52d832c00a2793fa49252ab0bbb88c511e4c0..07004489610d0a438fece6465493d77d90fe40d3 100644 (file)
@@ -174,3 +174,11 @@ fn closure_borrow(x: Box<A>) {
         };
     }
 }
+
+/// Issue #5542
+///
+/// This shouldn't warn for `boxed_local` as it is intended to called from non-Rust code.
+pub extern "C" fn do_not_warn_me(_c_pointer: Box<String>) -> () {}
+
+#[rustfmt::skip] // Forces rustfmt to not add ABI
+pub extern fn do_not_warn_me_no_abi(_c_pointer: Box<String>) -> () {}