about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-24 04:28:53 +0000
committerbors <bors@rust-lang.org>2024-02-24 04:28:53 +0000
commit05978388922a0734fe67dd75d884794b0c0d2f59 (patch)
treeaaa40a4a7c028d16ece48cebe7fda5c86a9fc36d /compiler/rustc_pattern_analysis/src
parent5a52c8aee97a7f57f53222000b58ffd11bfac1f7 (diff)
parent5ab42d8e6a7fac7cfe5f06b7467d97c1138ebd46 (diff)
downloadrust-05978388922a0734fe67dd75d884794b0c0d2f59.tar.gz
rust-05978388922a0734fe67dd75d884794b0c0d2f59.zip
Auto merge of #12260 - Jarcho:issue_12255, r=llogiq
Take lifetime extension into account in `ref_as_ptr`

fixes #12255

This should be merged upstream as well. Changing `let x = &temp as *const _` into `let x = from_ref(&temp)` is UB.

changelog: `ref_as_ptr`: Take lifetime extension into account
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions