Skip to content

Rollup of 8 pull requests #133129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
b368110
Stabilize `const_atomic_from_ptr`
tgross35 Oct 14, 2024
7651fc6
mark is_val_statically_known intrinsic as stably const-callable
RalfJung Nov 1, 2024
3d3b515
ABI checks: add support for some tier3 arches, warn on others.
veluca93 Nov 13, 2024
cd46ff6
rustdoc search: allow queries to end in an empty path segment
lolbinarycat Nov 3, 2024
427d915
Also check if let chains with multiple lets in these two tests
est31 Nov 16, 2024
f502dce
Add regression test for issue #103476, fixed in edition 2024
est31 Nov 16, 2024
dd688cb
Opt out TaKO8Ki from review rotation for now
jieyouxu Nov 16, 2024
5eef5ee
stabilize const_ptr_is_null
RalfJung Nov 16, 2024
543627d
clean up const stability around UB checks
RalfJung Nov 16, 2024
ec65dfc
alloc: fix `String`'s doc
ohno418 Nov 17, 2024
012481c
Rollup merge of #131717 - tgross35:stabilize-const_atomic_from_ptr, r…
jhpratt Nov 17, 2024
d661bb1
Rollup merge of #132449 - RalfJung:is_val_statically_known, r=compile…
jhpratt Nov 17, 2024
3719eea
Rollup merge of #132569 - lolbinarycat:rustdoc-search-path-end-empty-…
jhpratt Nov 17, 2024
56f5aa8
Rollup merge of #133029 - veluca93:abi-checks-tier3, r=workingjubilee
jhpratt Nov 17, 2024
b286dd9
Rollup merge of #133093 - est31:let_chains_tests, r=traviscross
jhpratt Nov 17, 2024
9daa6c4
Rollup merge of #133097 - jieyouxu:opt-out-review-rotation, r=jieyouxu
jhpratt Nov 17, 2024
3be5c40
Rollup merge of #133116 - RalfJung:const-null-ptr, r=dtolnay
jhpratt Nov 17, 2024
c645b6a
Rollup merge of #133126 - ohno418:fix-String-doc, r=jhpratt
jhpratt Nov 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions library/core/src/intrinsics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3535,7 +3535,6 @@ pub(crate) macro const_eval_select {
/// In other words, the following code has *Undefined Behavior*:
///
/// ```no_run
/// #![feature(is_val_statically_known)]
/// #![feature(core_intrinsics)]
/// # #![allow(internal_features)]
/// use std::hint::unreachable_unchecked;
Expand All @@ -3548,7 +3547,6 @@ pub(crate) macro const_eval_select {
/// may panic, or it may not:
///
/// ```no_run
/// #![feature(is_val_statically_known)]
/// #![feature(core_intrinsics)]
/// # #![allow(internal_features)]
/// use std::intrinsics::is_val_statically_known;
Expand Down Expand Up @@ -3581,7 +3579,6 @@ pub(crate) macro const_eval_select {
/// behave identically:
///
/// ```
/// #![feature(is_val_statically_known)]
/// #![feature(core_intrinsics)]
/// # #![allow(internal_features)]
/// use std::intrinsics::is_val_statically_known;
Expand All @@ -3598,7 +3595,11 @@ pub(crate) macro const_eval_select {
/// # _ = foo(&5_i32);
/// # _ = bar(&5_i32);
/// ```
#[rustc_const_unstable(feature = "is_val_statically_known", issue = "none")]
#[cfg_attr(
bootstrap,
rustc_const_stable(feature = "const_is_val_statically_known", since = "CURRENT_RUSTC_VERSION")
)]
#[cfg_attr(not(bootstrap), rustc_const_stable_indirect)]
#[rustc_nounwind]
#[unstable(feature = "core_intrinsics", issue = "none")]
#[rustc_intrinsic]
Expand Down
1 change: 0 additions & 1 deletion library/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@
#![feature(internal_impls_macro)]
#![feature(ip)]
#![feature(is_ascii_octdigit)]
#![feature(is_val_statically_known)]
#![feature(lazy_get)]
#![feature(link_cfg)]
#![feature(non_null_from_ref)]
Expand Down
2 changes: 0 additions & 2 deletions library/core/src/num/int_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,6 @@ macro_rules! int_impl {
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
#[rustc_allow_const_fn_unstable(is_val_statically_known)]
pub const fn wrapping_pow(self, mut exp: u32) -> Self {
if exp == 0 {
return 1;
Expand Down Expand Up @@ -2808,7 +2807,6 @@ macro_rules! int_impl {
without modifying the original"]
#[inline]
#[rustc_inherit_overflow_checks]
#[rustc_allow_const_fn_unstable(is_val_statically_known)]
pub const fn pow(self, mut exp: u32) -> Self {
if exp == 0 {
return 1;
Expand Down
2 changes: 0 additions & 2 deletions library/core/src/num/uint_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2251,7 +2251,6 @@ macro_rules! uint_impl {
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
#[rustc_allow_const_fn_unstable(is_val_statically_known)]
pub const fn wrapping_pow(self, mut exp: u32) -> Self {
if exp == 0 {
return 1;
Expand Down Expand Up @@ -2791,7 +2790,6 @@ macro_rules! uint_impl {
without modifying the original"]
#[inline]
#[rustc_inherit_overflow_checks]
#[rustc_allow_const_fn_unstable(is_val_statically_known)]
pub const fn pow(self, mut exp: u32) -> Self {
if exp == 0 {
return 1;
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/consts/is_val_statically_known.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//@ run-pass

#![feature(core_intrinsics, is_val_statically_known)]
#![feature(core_intrinsics)]

use std::intrinsics::is_val_statically_known;

Expand Down