Skip to content

Commit 51edfba

Browse files
committed
Convert TODO to a Note(matklad)
1 parent 65b380f commit 51edfba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,7 @@ pub struct LambdaExpr {
844844
}
845845
impl ast::AttrsOwner for LambdaExpr {}
846846
impl LambdaExpr {
847+
pub fn static_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![static]) }
847848
pub fn async_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![async]) }
848849
pub fn move_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![move]) }
849850
pub fn param_list(&self) -> Option<ParamList> { support::child(&self.syntax) }

xtask/src/ast_src.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
890890
///
891891
/// [Reference](https://doc.rust-lang.org/reference/expressions/closure-expr.html)
892892
struct LambdaExpr: AttrsOwner {
893-
// T![static], // TODO: what's this?
893+
T![static], // Note(@matklad): I belive this is (used to be?) syntax for generators
894894
T![async],
895895
T![move],
896896
ParamList,

0 commit comments

Comments
 (0)