X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_hir_typeck%2Fsrc%2Fmem_categorization.rs;h=0b5dc946c1deffa589f20f036542cfacc7edd6a8;hb=a673364c543986789cfbb844c925063519fb872a;hp=362f1c3430041a45e668c263b825e7f790a2fbc9;hpb=22a6bc4da0ce15606e3a7fb01c5cc6ff175f79af;p=rust.git diff --git a/compiler/rustc_hir_typeck/src/mem_categorization.rs b/compiler/rustc_hir_typeck/src/mem_categorization.rs index 362f1c34300..0b5dc946c1d 100644 --- a/compiler/rustc_hir_typeck/src/mem_categorization.rs +++ b/compiler/rustc_hir_typeck/src/mem_categorization.rs @@ -133,7 +133,7 @@ fn resolve_vars_if_possible(&self, value: T) -> T } fn is_tainted_by_errors(&self) -> bool { - self.infcx.is_tainted_by_errors() + self.infcx.tainted_by_errors().is_some() } fn resolve_type_vars_or_error(