about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/noop_method_call.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2021-08-02 09:56:05 +0200
committerlcnr <rust@lcnr.de>2021-08-26 11:14:31 +0200
commitf3996f6a88c7a4f24b673809aa50897fb2615691 (patch)
tree338ebd47f1013c9f58fe5aef757f01ba096401a3 /compiler/rustc_lint/src/noop_method_call.rs
parentbc0156baceed60a4dbfd063554e66bc69b3b0bd4 (diff)
downloadrust-f3996f6a88c7a4f24b673809aa50897fb2615691.tar.gz
rust-f3996f6a88c7a4f24b673809aa50897fb2615691.zip
review
Diffstat (limited to 'compiler/rustc_lint/src/noop_method_call.rs')
-rw-r--r--compiler/rustc_lint/src/noop_method_call.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/noop_method_call.rs b/compiler/rustc_lint/src/noop_method_call.rs
index 908d847915f..c14f16b6d11 100644
--- a/compiler/rustc_lint/src/noop_method_call.rs
+++ b/compiler/rustc_lint/src/noop_method_call.rs
@@ -62,7 +62,7 @@ impl<'tcx> LateLintPass<'tcx> for NoopMethodCall {
             _ => return,
         };
         let substs = cx.typeck_results().node_substs(expr.hir_id);
-        if substs.needs_subst(cx.tcx) {
+        if substs.definitely_needs_subst(cx.tcx) {
             // We can't resolve on types that require monomorphization, so we don't handle them if
             // we need to perfom substitution.
             return;