summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authormejrs <59372212+mejrs@users.noreply.github.com>2025-07-11 01:24:24 +0200
committermejrs <59372212+mejrs@users.noreply.github.com>2025-07-11 01:24:24 +0200
commita7bf5c4fa2d83669511e88657c194edaec82a872 (patch)
tree67e6da99a781bc01d5aced45cc13af2722cfc7c3 /compiler/rustc_lint/src
parent25cf7d13c960a3ac47d1424ca354077efb6946ff (diff)
downloadrust-a7bf5c4fa2d83669511e88657c194edaec82a872.tar.gz
rust-a7bf5c4fa2d83669511e88657c194edaec82a872.zip
Split up the `unknown_or_malformed_diagnostic_attributes` lint
Diffstat (limited to 'compiler/rustc_lint/src')
-rw-r--r--compiler/rustc_lint/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/lib.rs b/compiler/rustc_lint/src/lib.rs
index 48982bda0a0..419124d5144 100644
--- a/compiler/rustc_lint/src/lib.rs
+++ b/compiler/rustc_lint/src/lib.rs
@@ -339,6 +339,14 @@ fn register_builtins(store: &mut LintStore) {
 
     add_lint_group!("deprecated_safe", DEPRECATED_SAFE_2024);
 
+    add_lint_group!(
+        "unknown_or_malformed_diagnostic_attributes",
+        MALFORMED_DIAGNOSTIC_ATTRIBUTES,
+        MALFORMED_DIAGNOSTIC_FORMAT_LITERALS,
+        MISPLACED_DIAGNOSTIC_ATTRIBUTES,
+        UNKNOWN_DIAGNOSTIC_ATTRIBUTES
+    );
+
     // Register renamed and removed lints.
     store.register_renamed("single_use_lifetime", "single_use_lifetimes");
     store.register_renamed("elided_lifetime_in_path", "elided_lifetimes_in_paths");