From 51a173ee6894f01a1cb720406b42e6bc799260bf Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 15 Jan 2025 18:35:52 -0800 Subject: [PATCH] Ignore missing_abi lint in nightly-2025-01-16 warning: extern declarations without an explicit ABI are deprecated --> tests/test_ensure.rs:617:43 | 617 | let test = || Ok(ensure!(extern_fn as extern fn() as usize * 0 != 0)); | ^^^^^^ help: explicitly specify the C ABI: `extern "C"` | = note: `#[warn(missing_abi)]` on by default --- tests/test_ensure.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_ensure.rs b/tests/test_ensure.rs index 100b378..5fe5278 100644 --- a/tests/test_ensure.rs +++ b/tests/test_ensure.rs @@ -614,6 +614,7 @@ fn test_as() { extern "C" fn extern_fn() {} #[rustfmt::skip] + #[allow(missing_abi)] let test = || Ok(ensure!(extern_fn as extern fn() as usize * 0 != 0)); assert_err( test,