ty.kind
-> ty.kind()
in rustdoc and clippy
This commit is contained in:
parent
365b13c0e7
commit
28f9b84042
55 changed files with 187 additions and 188 deletions
|
@ -286,7 +286,7 @@ fn has_is_empty(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool {
|
|||
}
|
||||
|
||||
let ty = &walk_ptrs_ty(cx.typeck_results().expr_ty(expr));
|
||||
match ty.kind {
|
||||
match ty.kind() {
|
||||
ty::Dynamic(ref tt, ..) => tt.principal().map_or(false, |principal| {
|
||||
cx.tcx
|
||||
.associated_items(principal.def_id())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue