mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
332cac2c6d
deref patterns: lower deref patterns to MIR This lowers deref patterns to MIR. This is a bit tricky because this is the first kind of pattern that requires storing a value in a temporary. Thanks to https://github.com/rust-lang/rust/pull/123324 false edges are no longer a problem. The thing I'm not confident about is the handling of fake borrows. This PR ignores any fake borrows inside a deref pattern. We are guaranteed to at least fake borrow the place of the first pointer value, which could be enough, but I'm not certain. |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Cargo.toml |