1
Fork 0

ty.kind -> ty.kind() in rustdoc and clippy

This commit is contained in:
LeSeulArtichaut 2020-08-04 00:18:29 +02:00
parent 365b13c0e7
commit 28f9b84042
55 changed files with 187 additions and 188 deletions

View file

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