diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-08-19 12:18:09 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-08-19 12:18:09 +0100 |
commit | 8704a74cd5d02ed4dfe897c12186af1c3ac697fa (patch) | |
tree | 382f5f5f5d6ba7182164c438ee5c4a1cb700fbb8 /crates/ra_hir/src/generics.rs | |
parent | ba2836245b64fffd9c8107a4ed511eba90583d06 (diff) | |
parent | df6dce23a7d1a87617939fb9bd61a4d65933cef5 (diff) |
Merge #1700
1700: remove ast::*Kind enums r=matklad a=matklad
bors r+
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/generics.rs')
-rw-r--r-- | crates/ra_hir/src/generics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/generics.rs b/crates/ra_hir/src/generics.rs index bcbb4988d..e6482180d 100644 --- a/crates/ra_hir/src/generics.rs +++ b/crates/ra_hir/src/generics.rs | |||
@@ -137,8 +137,8 @@ impl GenericParams { | |||
137 | fn add_where_predicate_from_bound(&mut self, bound: ast::TypeBound, type_ref: TypeRef) { | 137 | fn add_where_predicate_from_bound(&mut self, bound: ast::TypeBound, type_ref: TypeRef) { |
138 | let path = bound | 138 | let path = bound |
139 | .type_ref() | 139 | .type_ref() |
140 | .and_then(|tr| match tr.kind() { | 140 | .and_then(|tr| match tr { |
141 | ast::TypeRefKind::PathType(path) => path.path(), | 141 | ast::TypeRef::PathType(path) => path.path(), |
142 | _ => None, | 142 | _ => None, |
143 | }) | 143 | }) |
144 | .and_then(Path::from_ast); | 144 | .and_then(Path::from_ast); |