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_trait_selection/src | |
| 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_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/mod.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/mod.rs b/compiler/rustc_trait_selection/src/traits/mod.rs index 2bab380dba0..37b40a2f75a 100644 --- a/compiler/rustc_trait_selection/src/traits/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/mod.rs @@ -450,9 +450,6 @@ pub fn impossible_predicates<'tcx>( } let errors = ocx.select_all_or_error(); - // Clean up after ourselves - let _ = infcx.inner.borrow_mut().opaque_type_storage.take_opaque_types(); - let result = !errors.is_empty(); debug!("impossible_predicates = {:?}", result); result |
