Skip to content

Commit

Permalink
Ignore missing_abi lint in nightly-2025-01-16
Browse files Browse the repository at this point in the history
    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
  • Loading branch information
dtolnay committed Jan 16, 2025
1 parent 4d71a84 commit 51a173e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_ensure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 51a173e

Please # to comment.