mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
b7583d38b7
generator layout: ignore fake borrows
fixes #117059
We emit fake shallow borrows in case the scrutinee place uses a `Deref` and there is a match guard. This is necessary to prevent the match guard from mutating the scrutinee:
|
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |