correct template for #[align]

it should not suggest just `#[align]`
This commit is contained in:
Folkert de Vries
2025-06-19 12:40:50 +02:00
parent 8a65ee0829
commit eefd598725
6 changed files with 35 additions and 33 deletions

View File

@@ -273,7 +273,7 @@ pub(crate) struct AlignParser(Option<(Align, Span)>);
impl AlignParser {
const PATH: &'static [Symbol] = &[sym::align];
const TEMPLATE: AttributeTemplate = template!(Word, List: "<alignment in bytes>");
const TEMPLATE: AttributeTemplate = template!(List: "<alignment in bytes>");
fn parse<'c, S: Stage>(
&mut self,