diff options
| author | lcnr <rust@lcnr.de> | 2021-08-02 09:56:05 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2021-08-26 11:14:31 +0200 |
| commit | f3996f6a88c7a4f24b673809aa50897fb2615691 (patch) | |
| tree | 338ebd47f1013c9f58fe5aef757f01ba096401a3 /compiler/rustc_lint/src/noop_method_call.rs | |
| parent | bc0156baceed60a4dbfd063554e66bc69b3b0bd4 (diff) | |
| download | rust-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.rs | 2 |
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; |
