]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #89551 - jhpratt:stabilize-const_raw_ptr_deref, r=oli-obk
authorbors <bors@rust-lang.org>
Sat, 13 Nov 2021 17:10:15 +0000 (17:10 +0000)
committerbors <bors@rust-lang.org>
Sat, 13 Nov 2021 17:10:15 +0000 (17:10 +0000)
commitd212d902ae8d29e31b32641096f7848a4bb35522
treef74a388c0cd5dddb03d6ef2e2463a6aeff697162
parent1b12d01903293453dd94aa170c82caf94415629f
parent0cdbeaa2a3a2d17ed20122dc310f198e58402aa2
Auto merge of #89551 - jhpratt:stabilize-const_raw_ptr_deref, r=oli-obk

Stabilize `const_raw_ptr_deref` for `*const T`

This stabilizes dereferencing immutable raw pointers in const contexts.
It does not stabilize `*mut T` dereferencing. This is behind the
same feature gate as mutable references.

closes https://github.com/rust-lang/rust/issues/51911
compiler/rustc_const_eval/src/transform/check_consts/check.rs
compiler/rustc_feature/src/active.rs
library/core/src/lib.rs
library/core/tests/lib.rs
library/std/src/lib.rs