Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore missing_abi lint in nightly-2025-01-16 #404

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Ignore missing_abi lint in nightly-2025-01-16 #404

merged 1 commit into from
Jan 16, 2025

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jan 16, 2025

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

This test is specifically for testing that our parser is able to parse extern function pointer types both with and without abi, so it will continue to be useful to keep this written without abi.

    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
@dtolnay dtolnay merged commit 8891ce3 into master Jan 16, 2025
27 checks passed
@dtolnay dtolnay deleted the missingabi branch January 16, 2025 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant