diff options
| author | Michael Goulet <michael@errs.io> | 2024-09-18 15:39:23 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-02-22 00:01:48 +0000 |
| commit | 7f6873f64c17cfa53a10a7751c7213f6ed0215c1 (patch) | |
| tree | e1dc99c686363e27025445441ffbc88193312147 /compiler/rustc_lint/src/builtin.rs | |
| parent | 76d341fa09c423e601e2c47f8e4d165fcb7c21aa (diff) | |
| download | rust-7f6873f64c17cfa53a10a7751c7213f6ed0215c1.tar.gz rust-7f6873f64c17cfa53a10a7751c7213f6ed0215c1.zip | |
Fix builtin lints
Diffstat (limited to 'compiler/rustc_lint/src/builtin.rs')
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index b5f09ff346a..681a76e26f0 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -975,10 +975,8 @@ declare_lint! { /// ### Example /// /// ```rust - /// #[no_mangle] - /// fn foo<T>(t: T) { - /// - /// } + /// #[unsafe(no_mangle)] + /// fn foo<T>(t: T) {} /// ``` /// /// {{produces}} |
