diff options
author | veetaha <[email protected]> | 2020-05-12 21:50:52 +0100 |
---|---|---|
committer | veetaha <[email protected]> | 2020-05-12 21:50:52 +0100 |
commit | 51edfbaffe15b08090d2f9956939988074b3c224 (patch) | |
tree | 8c10e1d09615d0da0dba2c84294cf9e3d020310e | |
parent | 65b380fa8dfa9efa589f16bfe7e73403c514128e (diff) |
Convert TODO to a Note(matklad)
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 1 | ||||
-rw-r--r-- | xtask/src/ast_src.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 05b197772..a25646c6b 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs | |||
@@ -844,6 +844,7 @@ pub struct LambdaExpr { | |||
844 | } | 844 | } |
845 | impl ast::AttrsOwner for LambdaExpr {} | 845 | impl ast::AttrsOwner for LambdaExpr {} |
846 | impl LambdaExpr { | 846 | impl LambdaExpr { |
847 | pub fn static_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![static]) } | ||
847 | pub fn async_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![async]) } | 848 | pub fn async_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![async]) } |
848 | pub fn move_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![move]) } | 849 | pub fn move_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![move]) } |
849 | pub fn param_list(&self) -> Option<ParamList> { support::child(&self.syntax) } | 850 | pub fn param_list(&self) -> Option<ParamList> { support::child(&self.syntax) } |
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index bebac4a15..2b9c24677 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs | |||
@@ -890,7 +890,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { | |||
890 | /// | 890 | /// |
891 | /// [Reference](https://doc.rust-lang.org/reference/expressions/closure-expr.html) | 891 | /// [Reference](https://doc.rust-lang.org/reference/expressions/closure-expr.html) |
892 | struct LambdaExpr: AttrsOwner { | 892 | 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 |
894 | T![async], | 894 | T![async], |
895 | T![move], | 895 | T![move], |
896 | ParamList, | 896 | ParamList, |