Skip to content

Commit 27fac08

Browse files
authored
Merge pull request #18715 from aibaars/ungram-asm-option
Fix AsmOption rule in rust.ungram
2 parents a229bc8 + cb2829e commit 27fac08

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

crates/syntax/rust.ungram

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ AsmClobberAbi = 'clobber_abi' '(' ('@string' (',' '@string')* ','?) ')'
414414
// option := "pure" / "nomem" / "readonly" / "preserves_flags" / "noreturn" / "nostack" / "att_syntax" / "raw"
415415
AsmOption = 'pure' | 'nomem' | 'readonly' | 'preserves_flags' | 'noreturn' | 'nostack' | 'att_syntax' | 'raw' | 'may_unwind'
416416
// options := "options(" option *("," option) [","] ")"
417-
AsmOptions = 'options' '(' AsmOption *(',' AsmOption) ','? ')'
417+
AsmOptions = 'options' '(' (AsmOption (',' AsmOption)*) ','? ')'
418418
AsmLabel = 'label' BlockExpr
419419
AsmSym = 'sym' Path
420420
AsmConst = 'const' Expr

crates/syntax/src/ast/generated/nodes.rs

-2
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ pub struct AsmOptions {
211211
pub(crate) syntax: SyntaxNode,
212212
}
213213
impl AsmOptions {
214-
#[inline]
215-
pub fn asm_option(&self) -> Option<AsmOption> { support::child(&self.syntax) }
216214
#[inline]
217215
pub fn asm_options(&self) -> AstChildren<AsmOption> { support::children(&self.syntax) }
218216
#[inline]

0 commit comments

Comments
 (0)