Skip to content

Commit cca4ea7

Browse files
committed
minor: Remove impossible function pointer qualifiers from grammar
1 parent fc98e06 commit cca4ea7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

crates/syntax/rust.ungram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ InferType =
640640
'_'
641641

642642
FnPtrType =
643-
'const'? 'async'? 'unsafe'? Abi? 'fn' ParamList RetType?
643+
'unsafe'? Abi? 'fn' ParamList RetType?
644644

645645
ForType =
646646
'for' GenericParamList Type

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,6 @@ impl FnPtrType {
685685
#[inline]
686686
pub fn ret_type(&self) -> Option<RetType> { support::child(&self.syntax) }
687687
#[inline]
688-
pub fn async_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![async]) }
689-
#[inline]
690-
pub fn const_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![const]) }
691-
#[inline]
692688
pub fn fn_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![fn]) }
693689
#[inline]
694690
pub fn unsafe_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![unsafe]) }

0 commit comments

Comments
 (0)