about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/context/diagnostics.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-06 08:14:58 +0000
committerbors <bors@rust-lang.org>2024-06-06 08:14:58 +0000
commit2d28b6384e5e0a2c9d1500a1f65e35423453fbf6 (patch)
tree3a67252345dc7839b6b6e246c16fd2de79fca402 /compiler/rustc_lint/src/context/diagnostics.rs
parent2b6a34273d820df4140a00984d38d40c745fb565 (diff)
parent525828d5ee9baca7f7e651918df966f6bc38596a (diff)
downloadrust-2d28b6384e5e0a2c9d1500a1f65e35423453fbf6.tar.gz
rust-2d28b6384e5e0a2c9d1500a1f65e35423453fbf6.zip
Auto merge of #124482 - spastorino:unsafe-extern-blocks, r=oli-obk
Unsafe extern blocks

This implements RFC 3484.

Tracking issue #123743 and RFC https://github.com/rust-lang/rfcs/pull/3484

This is better reviewed commit by commit.
Diffstat (limited to 'compiler/rustc_lint/src/context/diagnostics.rs')
-rw-r--r--compiler/rustc_lint/src/context/diagnostics.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/context/diagnostics.rs b/compiler/rustc_lint/src/context/diagnostics.rs
index 19470415684..1dfbe1e9382 100644
--- a/compiler/rustc_lint/src/context/diagnostics.rs
+++ b/compiler/rustc_lint/src/context/diagnostics.rs
@@ -202,6 +202,9 @@ pub(super) fn decorate_lint(sess: &Session, diagnostic: BuiltinLintDiag, diag: &
             };
             lints::DeprecatedWhereClauseLocation { suggestion }.decorate_lint(diag);
         }
+        BuiltinLintDiag::MissingUnsafeOnExtern { suggestion } => {
+            lints::MissingUnsafeOnExtern { suggestion }.decorate_lint(diag);
+        }
         BuiltinLintDiag::SingleUseLifetime {
             param_span,
             use_span: Some((use_span, elide)),