diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-02 17:46:10 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-02 17:46:10 +0100 |
commit | a8397deab914240aca8f015fb3736689919c0a5b (patch) | |
tree | 0afdeb58c88c4d63426355e344f2b1a8fc46f613 /crates/ra_syntax/src/ast/generated.rs | |
parent | 8de2fb37c045a4f4fc6dd1f49bd3b0157182086c (diff) | |
parent | f377b94628a265cb5335fbe4594a47cc8ddc9e2c (diff) |
Merge #1751
1751: remove useless trait r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/ast/generated.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 90480b6ca..7f91417c5 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -3134,8 +3134,11 @@ impl AstNode for TryBlockExpr { | |||
3134 | &self.syntax | 3134 | &self.syntax |
3135 | } | 3135 | } |
3136 | } | 3136 | } |
3137 | impl ast::TryBlockBodyOwner for TryBlockExpr {} | 3137 | impl TryBlockExpr { |
3138 | impl TryBlockExpr {} | 3138 | pub fn block(&self) -> Option<Block> { |
3139 | AstChildren::new(&self.syntax).next() | ||
3140 | } | ||
3141 | } | ||
3139 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 3142 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
3140 | pub struct TryExpr { | 3143 | pub struct TryExpr { |
3141 | pub(crate) syntax: SyntaxNode, | 3144 | pub(crate) syntax: SyntaxNode, |