mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 13:36:49 +00:00
Add explanatory comment
This commit is contained in:
parent
2884a74d08
commit
bbe3be9bf8
@ -941,6 +941,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
||||
exprs.len()
|
||||
);
|
||||
|
||||
// The following check fixes #88097, where the compiler erroneously
|
||||
// attempted to coerce a closure type to itself via a function pointer.
|
||||
if prev_ty == new_ty {
|
||||
return Ok(prev_ty);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user