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 29fe618 commit b54d722Copy full SHA for b54d722
compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
@@ -3842,7 +3842,9 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
3842
self.probe(|_| {
3843
match self
3844
.at(&ObligationCause::misc(expr.span, body_id), param_env)
3845
- .eq(DefineOpaqueTypes::No, expected, actual)
+ // Doesn't actually matter if we define opaque types here, this is just used for
3846
+ // diagnostics, and the result is never kept around.
3847
+ .eq(DefineOpaqueTypes::Yes, expected, actual)
3848
{
3849
Ok(_) => (), // We ignore nested obligations here for now.
3850
Err(err) => type_diffs.push(err),
0 commit comments