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

@@ -235,9 +235,9 @@ impl<'f, 'sess: 'f, S: Stage> AcceptContext<'f, 'sess, S> {
})
}
pub(crate) fn expected_no_args(&self, span: Span) -> ErrorGuaranteed {
pub(crate) fn expected_no_args(&self, args_span: Span) -> ErrorGuaranteed {
self.emit_err(AttributeParseError {
span,
span: args_span,
attr_span: self.attr_span,
template: self.template.clone(),
attribute: self.attr_path.clone(),