1
Fork 0

Fix builtin lints

This commit is contained in:
Michael Goulet 2024-09-18 15:39:23 -04:00
parent 76d341fa09
commit 7f6873f64c
4 changed files with 9 additions and 11 deletions

View file

@ -975,10 +975,8 @@ declare_lint! {
/// ### Example
///
/// ```rust
/// #[no_mangle]
/// fn foo<T>(t: T) {
///
/// }
/// #[unsafe(no_mangle)]
/// fn foo<T>(t: T) {}
/// ```
///
/// {{produces}}

View file

@ -35,12 +35,12 @@ declare_lint! {
///
/// ```rust
/// mod m {
/// extern "C" {
/// unsafe extern "C" {
/// fn foo();
/// }
/// }
///
/// extern "C" {
/// unsafe extern "C" {
/// fn foo(_: u32);
/// }
/// ```

View file

@ -696,7 +696,7 @@ declare_lint! {
/// ### Example
///
/// ```rust
/// extern "C" {
/// unsafe extern "C" {
/// static STATIC: String;
/// }
/// ```