diff options
| author | Yuki Okushi <huyuumi.dev+love@gmail.com> | 2023-01-10 08:05:34 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-10 08:05:34 +0900 |
| commit | e5e116dca92c7fb2cb0176ee7ff3a9576806b080 (patch) | |
| tree | 97dae1e51b60a665b89a3df08d76474ace13aa17 /compiler/rustc_traits/src/codegen.rs | |
| parent | 684a3717cb78ef8a8c3182b0b2ef630dadb7c4aa (diff) | |
| parent | f769d34291e489db19d3c972348ddb24b6b32481 (diff) | |
| download | rust-e5e116dca92c7fb2cb0176ee7ff3a9576806b080.tar.gz rust-e5e116dca92c7fb2cb0176ee7ff3a9576806b080.zip | |
Rollup merge of #106204 - compiler-errors:no-take-opaques-in-compare, r=oli-obk
No need to take opaques in `check_type_bounds` `InferCtxt` already has its defining use anchor set to err r? ``@oli-obk``
Diffstat (limited to 'compiler/rustc_traits/src/codegen.rs')
| -rw-r--r-- | compiler/rustc_traits/src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_traits/src/codegen.rs b/compiler/rustc_traits/src/codegen.rs index f8f74b732ef..f127ef8343f 100644 --- a/compiler/rustc_traits/src/codegen.rs +++ b/compiler/rustc_traits/src/codegen.rs @@ -82,7 +82,7 @@ pub fn codegen_select_candidate<'tcx>( // Opaque types may have gotten their hidden types constrained, but we can ignore them safely // as they will get constrained elsewhere, too. // (ouz-a) This is required for `type-alias-impl-trait/assoc-projection-ice.rs` to pass - let _ = infcx.inner.borrow_mut().opaque_type_storage.take_opaque_types(); + let _ = infcx.take_opaque_types(); Ok(&*tcx.arena.alloc(impl_source)) } |
