1
Fork 0

Add unsafe_extern_blocks feature flag

This commit is contained in:
Santiago Pastorino 2024-05-31 16:57:07 -03:00
parent bac72cf7cf
commit 0380321e78
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
21 changed files with 93 additions and 37 deletions

View file

@ -4858,7 +4858,10 @@ declare_lint! {
///
/// ### Example
///
/// ```rust,edition2024
/// ```rust,edition2024,ignore
/// #![feature(unsafe_extern_blocks)]
/// #![allow(dead_code)]
///
/// extern "C" {
/// fn foo(_: i32);
/// }
@ -4880,5 +4883,5 @@ declare_lint! {
pub MISSING_UNSAFE_ON_EXTERN,
Allow,
"detects missing unsafe keyword on extern declarations",
@edition Edition2024 => Warn;
@edition Edition2024 => Deny;
}