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

@@ -121,7 +121,7 @@ impl<'tcx> LateLintPass<'tcx> for DropForgetRef {
let arg = &args[0];
let arg_ty = cx.typeck_results().expr_ty(arg);
if let ty::Ref(..) = arg_ty.kind {
if let ty::Ref(..) = arg_ty.kind() {
if match_def_path(cx, def_id, &paths::DROP) {
lint = DROP_REF;
msg = DROP_REF_SUMMARY.to_string();