We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DefineOpaqueTypes::Yes
1 parent 7168c13 commit ab68746Copy full SHA for ab68746
compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
@@ -3802,7 +3802,9 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
3802
self.probe(|_| {
3803
match self
3804
.at(&ObligationCause::misc(expr.span, body_id), param_env)
3805
- .eq(DefineOpaqueTypes::No, expected, actual)
+ // Doesn't actually matter if we define opaque types here, this is just used for
3806
+ // diagnostics, and the result is never kept around.
3807
+ .eq(DefineOpaqueTypes::Yes, expected, actual)
3808
{
3809
Ok(_) => (), // We ignore nested obligations here for now.
3810
Err(err) => type_diffs.push(err),
0 commit comments