mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
remove ast::*Kind from hir
This commit is contained in:
parent
39e444d701
commit
b50a04827c
6 changed files with 86 additions and 83 deletions
|
@ -137,8 +137,8 @@ impl GenericParams {
|
|||
fn add_where_predicate_from_bound(&mut self, bound: ast::TypeBound, type_ref: TypeRef) {
|
||||
let path = bound
|
||||
.type_ref()
|
||||
.and_then(|tr| match tr.kind() {
|
||||
ast::TypeRefKind::PathType(path) => path.path(),
|
||||
.and_then(|tr| match tr {
|
||||
ast::TypeRef::PathType(path) => path.path(),
|
||||
_ => None,
|
||||
})
|
||||
.and_then(Path::from_ast);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue