Skip to content

Commit 326cd5c

Browse files
authored
Rollup merge of #124168 - oli-obk:define_opaque_types12, r=lcnr
Use `DefiningOpaqueTypes::Yes` in rustdoc, where the `InferCtxt` is guaranteed to have no opaque types it can define r? `@lcnr` I manually checked there it's always `tcx.infer_ctxt().build()`
2 parents 8859631 + 6bff7f4 commit 326cd5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/auto_trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
784784

785785
match (evaluate(c1), evaluate(c2)) {
786786
(Ok(c1), Ok(c2)) => {
787-
match selcx.infcx.at(&obligation.cause, obligation.param_env).eq(DefineOpaqueTypes::No,c1, c2)
787+
match selcx.infcx.at(&obligation.cause, obligation.param_env).eq(DefineOpaqueTypes::Yes,c1, c2)
788788
{
789789
Ok(_) => (),
790790
Err(_) => return false,

0 commit comments

Comments
 (0)