about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/early/diagnostics.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-08-11 04:21:09 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-08-11 16:00:49 +0000
commit625143bac3e2917adb59314a408b17e8d2f9bd65 (patch)
tree68137828ca43d9ec1fb7a596ad93fe8e72febf5e /compiler/rustc_lint/src/early/diagnostics.rs
parent189f264926ff70b58c8907473de60766477e7dd6 (diff)
downloadrust-625143bac3e2917adb59314a408b17e8d2f9bd65.tar.gz
rust-625143bac3e2917adb59314a408b17e8d2f9bd65.zip
Add link to docs on malformed attributes
Diffstat (limited to 'compiler/rustc_lint/src/early/diagnostics.rs')
-rw-r--r--compiler/rustc_lint/src/early/diagnostics.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/early/diagnostics.rs b/compiler/rustc_lint/src/early/diagnostics.rs
index f0fbf5bc81e..1e4bc79ce70 100644
--- a/compiler/rustc_lint/src/early/diagnostics.rs
+++ b/compiler/rustc_lint/src/early/diagnostics.rs
@@ -447,12 +447,14 @@ pub fn decorate_builtin_lint(
         BuiltinLintDiag::UnusedCrateDependency { extern_crate, local_crate } => {
             lints::UnusedCrateDependency { extern_crate, local_crate }.decorate_lint(diag)
         }
-        BuiltinLintDiag::IllFormedAttributeInput { suggestions } => {
+        BuiltinLintDiag::IllFormedAttributeInput { suggestions, docs } => {
             lints::IllFormedAttributeInput {
                 num_suggestions: suggestions.len(),
                 suggestions: DiagArgValue::StrListSepByAnd(
                     suggestions.into_iter().map(|s| format!("`{s}`").into()).collect(),
                 ),
+                has_docs: docs.is_some(),
+                docs: docs.unwrap_or(""),
             }
             .decorate_lint(diag)
         }