remove ast::*Kind from hir

This commit is contained in:
Aleksey Kladov 2019-08-19 14:04:51 +03:00
parent 39e444d701
commit b50a04827c
6 changed files with 86 additions and 83 deletions

View file

@ -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);