expected word diagnostic test

This commit is contained in:
Jana Dönszelmann
2025-06-12 14:24:40 +02:00
parent de0fd27f34
commit b9107a83a1
6 changed files with 21 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ impl<S: Stage> SingleAttributeParser<S> for ColdParser {
fn convert(cx: &mut AcceptContext<'_, '_, S>, args: &ArgParser<'_>) -> Option<AttributeKind> {
if !args.no_args() {
cx.expected_no_args(cx.attr_span);
cx.expected_no_args(args.span().unwrap_or(cx.attr_span));
return None;
};