summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-10 11:55:59 +0000
committerbors <bors@rust-lang.org>2023-03-10 11:55:59 +0000
commitd5833423a02e2373c5e3cceb238fb19192cd82f8 (patch)
tree15da2c8f33e9a6a9f153a6344c7d136e6e936fdb /library
parent104f4300cfddbd956e32820ef202a732f06ec848 (diff)
parent684de0418f94622ec8d2a6e7b77ca3f5213790c5 (diff)
downloadrust-d5833423a02e2373c5e3cceb238fb19192cd82f8.tar.gz
Auto merge of #102256 - cjgillot:let-under, r=lcnr
Introduce a no-op `PlaceMention` statement for `let _ =`. Fixes https://github.com/rust-lang/rust/issues/54003 Fixes https://github.com/rust-lang/rust/issues/80059 Split from https://github.com/rust-lang/rust/pull/101500 This PR introduces a new `PlaceMention` statement dedicated to matches that neither introduce bindings nor ascribe types. Without this, all traces of the match would vanish from MIR, making it impossible to diagnose unsafety or use in #101500. This allows to mark `let _ = <unsafe union access or dereference>` as requiring an unsafe block. Nominating for lang team, as this introduces an extra error.
Diffstat (limited to 'library')
0 files changed, 0 insertions, 0 deletions