Fix builtin lints
This commit is contained in:
@@ -975,10 +975,8 @@ declare_lint! {
|
|||||||
/// ### Example
|
/// ### Example
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// #[no_mangle]
|
/// #[unsafe(no_mangle)]
|
||||||
/// fn foo<T>(t: T) {
|
/// fn foo<T>(t: T) {}
|
||||||
///
|
|
||||||
/// }
|
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// {{produces}}
|
/// {{produces}}
|
||||||
|
|||||||
@@ -35,12 +35,12 @@ declare_lint! {
|
|||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// mod m {
|
/// mod m {
|
||||||
/// extern "C" {
|
/// unsafe extern "C" {
|
||||||
/// fn foo();
|
/// fn foo();
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
/// extern "C" {
|
/// unsafe extern "C" {
|
||||||
/// fn foo(_: u32);
|
/// fn foo(_: u32);
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
|||||||
@@ -696,7 +696,7 @@ declare_lint! {
|
|||||||
/// ### Example
|
/// ### Example
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// extern "C" {
|
/// unsafe extern "C" {
|
||||||
/// static STATIC: String;
|
/// static STATIC: String;
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
|||||||
@@ -2780,7 +2780,7 @@ declare_lint! {
|
|||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// enum Void {}
|
/// enum Void {}
|
||||||
/// extern {
|
/// unsafe extern {
|
||||||
/// static EXTERN: Void;
|
/// static EXTERN: Void;
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
@@ -4011,7 +4011,7 @@ declare_lint! {
|
|||||||
/// ```rust
|
/// ```rust
|
||||||
/// #![warn(ffi_unwind_calls)]
|
/// #![warn(ffi_unwind_calls)]
|
||||||
///
|
///
|
||||||
/// extern "C-unwind" {
|
/// unsafe extern "C-unwind" {
|
||||||
/// fn foo();
|
/// fn foo();
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
@@ -4755,7 +4755,7 @@ declare_lint! {
|
|||||||
///
|
///
|
||||||
/// ### Example
|
/// ### Example
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust,edition2021
|
||||||
/// #![warn(missing_unsafe_on_extern)]
|
/// #![warn(missing_unsafe_on_extern)]
|
||||||
/// #![allow(dead_code)]
|
/// #![allow(dead_code)]
|
||||||
///
|
///
|
||||||
@@ -4792,7 +4792,7 @@ declare_lint! {
|
|||||||
///
|
///
|
||||||
/// ### Example
|
/// ### Example
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust,edition2021
|
||||||
/// #![warn(unsafe_attr_outside_unsafe)]
|
/// #![warn(unsafe_attr_outside_unsafe)]
|
||||||
///
|
///
|
||||||
/// #[no_mangle]
|
/// #[no_mangle]
|
||||||
|
|||||||
Reference in New Issue
Block a user