Add more docs to templates for attrs with incorrect arguments

This commit is contained in:
Esteban Küber
2025-08-11 17:02:32 +00:00
parent 413ca5d9f0
commit 32ee26c625
39 changed files with 240 additions and 71 deletions

View File

@@ -16,7 +16,10 @@ use crate::{
CfgMatchesLintEmitter, fluent_generated, parse_version, session_diagnostics, try_gate_cfg,
};
pub const CFG_TEMPLATE: AttributeTemplate = template!(List: &["predicate"]);
pub const CFG_TEMPLATE: AttributeTemplate = template!(
List: &["predicate"],
"https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg-attribute"
);
pub fn parse_cfg_attr<'c, S: Stage>(
cx: &'c mut AcceptContext<'_, '_, S>,