Skip to content
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

Rollup of 5 pull requests #131288

Merged
merged 35 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
df6c27d
Refactor return_read_bytes_and_count and return_written_byte_count_or…
tiif Sep 30, 2024
c37539d
Auto merge of #3923 - tiif:refactor, r=RalfJung
bors Oct 1, 2024
88c7452
move io error handling helpers to their own file
RalfJung Oct 1, 2024
9c21fd4
make set_last_error directly callable on a bunch of ways to represent…
RalfJung Oct 1, 2024
4f4e1d4
add set_last_error_and_return_i32 helper and use it in a few places
RalfJung Oct 1, 2024
97510cd
Auto merge of #3929 - RalfJung:io-error, r=RalfJung
bors Oct 1, 2024
c1acccd
std: replace `LazyBox` with `OnceBox`
joboet Oct 1, 2024
3e089b0
epoll: add data_race test
FrankReh Oct 2, 2024
1b622f4
epoll: remove unnecessary instructions
FrankReh Oct 2, 2024
86bb137
epoll: add vector clock to the epoll ready_list
FrankReh Oct 2, 2024
81202c8
epoll: remove extraneous clone of ready_list
FrankReh Oct 2, 2024
52aa98a
Auto merge of #3932 - rust-lang:epoll-with-vector-clock, r=oli-obk
bors Oct 2, 2024
be819d4
Preparing for merge from rustc
RalfJung Oct 3, 2024
6280e26
Merge from rustc
RalfJung Oct 3, 2024
32d4968
fmt
RalfJung Oct 3, 2024
9b35886
make sure we also detect mixed-size races that begin at different add…
RalfJung Oct 3, 2024
bf71d65
Auto merge of #3935 - RalfJung:rustup, r=RalfJung
bors Oct 3, 2024
d19bd66
Preparing for merge from rustc
Oct 4, 2024
7014ae8
Merge from rustc
Oct 4, 2024
dc88a6a
clippy
RalfJung Oct 4, 2024
6602a23
Auto merge of #3938 - rust-lang:rustup-2024-10-04, r=RalfJung
bors Oct 4, 2024
d00b754
Implement LLVM x86 gfni intrinsics
TDecking Sep 17, 2024
f7400c3
Auto merge of #3895 - TDecking:gfni, r=RalfJung
bors Oct 4, 2024
f46e162
Prefer refutable slice patterns over len check + index op
oli-obk Oct 4, 2024
05f7b09
remove outdated contribution direction
onur-ozkan Oct 5, 2024
d0e6758
Stabilize `const_slice_split_at_mut` and `const_slice_first_last_chunk`
onestacked Sep 29, 2024
0cd0f7c
move f16/f128 const fn under f16/f128 feature gate
RalfJung Oct 4, 2024
1553805
pthread mutex: better error in reentrant-locking-UB, also test PTHREA…
RalfJung Oct 5, 2024
eb97047
Auto merge of #3943 - RalfJung:pthread-mutex-reentrant, r=RalfJung
bors Oct 5, 2024
3b418b1
Auto merge of #3940 - rust-lang:refutable_slice, r=RalfJung
bors Oct 5, 2024
386a0ba
Rollup merge of #130428 - ink-feather-org:stabilize-const-split-at-mu…
matthiaskrgr Oct 5, 2024
92beb42
Rollup merge of #131094 - joboet:lazy_once_box, r=ibraheemdev
matthiaskrgr Oct 5, 2024
cb5bb13
Rollup merge of #131256 - RalfJung:f16-f128-const, r=ibraheemdev
matthiaskrgr Oct 5, 2024
1bd61bb
Rollup merge of #131278 - onur-ozkan:update-outdated-doc, r=Kobzol
matthiaskrgr Oct 5, 2024
72acacf
Rollup merge of #131286 - RalfJung:miri-sync, r=RalfJung
matthiaskrgr Oct 5, 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
2 changes: 0 additions & 2 deletions library/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@
#![feature(coverage_attribute)]
#![feature(do_not_recommend)]
#![feature(duration_consts_float)]
#![feature(f128_const)]
#![feature(f16_const)]
#![feature(internal_impls_macro)]
#![feature(ip)]
#![feature(is_ascii_octdigit)]
Expand Down
16 changes: 8 additions & 8 deletions library/core/src/num/f128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ impl f128 {
/// ```
#[inline]
#[unstable(feature = "f128", issue = "116909")]
#[rustc_const_unstable(feature = "f128_const", issue = "116909")]
#[rustc_const_unstable(feature = "f128", issue = "116909")]
#[must_use = "this returns the result of the operation, without modifying the original"]
pub const fn to_bits(self) -> u128 {
// SAFETY: `u128` is a plain old datatype so we can always transmute to it.
Expand Down Expand Up @@ -959,7 +959,7 @@ impl f128 {
#[inline]
#[must_use]
#[unstable(feature = "f128", issue = "116909")]
#[rustc_const_unstable(feature = "f128_const", issue = "116909")]
#[rustc_const_unstable(feature = "f128", issue = "116909")]
pub const fn from_bits(v: u128) -> Self {
// It turns out the safety issues with sNaN were overblown! Hooray!
// SAFETY: `u128` is a plain old datatype so we can always transmute from it.
Expand All @@ -986,7 +986,7 @@ impl f128 {
/// ```
#[inline]
#[unstable(feature = "f128", issue = "116909")]
#[rustc_const_unstable(feature = "f128_const", issue = "116909")]
#[rustc_const_unstable(feature = "f128", issue = "116909")]
#[must_use = "this returns the result of the operation, without modifying the original"]
pub const fn to_be_bytes(self) -> [u8; 16] {
self.to_bits().to_be_bytes()
Expand All @@ -1012,7 +1012,7 @@ impl f128 {
/// ```
#[inline]
#[unstable(feature = "f128", issue = "116909")]
#[rustc_const_unstable(feature = "f128_const", issue = "116909")]
#[rustc_const_unstable(feature = "f128", issue = "116909")]
#[must_use = "this returns the result of the operation, without modifying the original"]
pub const fn to_le_bytes(self) -> [u8; 16] {
self.to_bits().to_le_bytes()
Expand Down Expand Up @@ -1049,7 +1049,7 @@ impl f128 {
/// ```
#[inline]
#[unstable(feature = "f128", issue = "116909")]
#[rustc_const_unstable(feature = "f128_const", issue = "116909")]
#[rustc_const_unstable(feature = "f128", issue = "116909")]
#[must_use = "this returns the result of the operation, without modifying the original"]
pub const fn to_ne_bytes(self) -> [u8; 16] {
self.to_bits().to_ne_bytes()
Expand Down Expand Up @@ -1077,7 +1077,7 @@ impl f128 {
#[inline]
#[must_use]
#[unstable(feature = "f128", issue = "116909")]
#[rustc_const_unstable(feature = "f128_const", issue = "116909")]
#[rustc_const_unstable(feature = "f128", issue = "116909")]
pub const fn from_be_bytes(bytes: [u8; 16]) -> Self {
Self::from_bits(u128::from_be_bytes(bytes))
}
Expand All @@ -1104,7 +1104,7 @@ impl f128 {
#[inline]
#[must_use]
#[unstable(feature = "f128", issue = "116909")]
#[rustc_const_unstable(feature = "f128_const", issue = "116909")]
#[rustc_const_unstable(feature = "f128", issue = "116909")]
pub const fn from_le_bytes(bytes: [u8; 16]) -> Self {
Self::from_bits(u128::from_le_bytes(bytes))
}
Expand Down Expand Up @@ -1141,7 +1141,7 @@ impl f128 {
#[inline]
#[must_use]
#[unstable(feature = "f128", issue = "116909")]
#[rustc_const_unstable(feature = "f128_const", issue = "116909")]
#[rustc_const_unstable(feature = "f128", issue = "116909")]
pub const fn from_ne_bytes(bytes: [u8; 16]) -> Self {
Self::from_bits(u128::from_ne_bytes(bytes))
}
Expand Down
16 changes: 8 additions & 8 deletions library/core/src/num/f16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ impl f16 {
/// ```
#[inline]
#[unstable(feature = "f16", issue = "116909")]
#[rustc_const_unstable(feature = "f16_const", issue = "116909")]
#[rustc_const_unstable(feature = "f16", issue = "116909")]
#[must_use = "this returns the result of the operation, without modifying the original"]
pub const fn to_bits(self) -> u16 {
// SAFETY: `u16` is a plain old datatype so we can always transmute to it.
Expand Down Expand Up @@ -944,7 +944,7 @@ impl f16 {
#[inline]
#[must_use]
#[unstable(feature = "f16", issue = "116909")]
#[rustc_const_unstable(feature = "f16_const", issue = "116909")]
#[rustc_const_unstable(feature = "f16", issue = "116909")]
pub const fn from_bits(v: u16) -> Self {
// It turns out the safety issues with sNaN were overblown! Hooray!
// SAFETY: `u16` is a plain old datatype so we can always transmute from it.
Expand All @@ -970,7 +970,7 @@ impl f16 {
/// ```
#[inline]
#[unstable(feature = "f16", issue = "116909")]
#[rustc_const_unstable(feature = "f16_const", issue = "116909")]
#[rustc_const_unstable(feature = "f16", issue = "116909")]
#[must_use = "this returns the result of the operation, without modifying the original"]
pub const fn to_be_bytes(self) -> [u8; 2] {
self.to_bits().to_be_bytes()
Expand All @@ -995,7 +995,7 @@ impl f16 {
/// ```
#[inline]
#[unstable(feature = "f16", issue = "116909")]
#[rustc_const_unstable(feature = "f16_const", issue = "116909")]
#[rustc_const_unstable(feature = "f16", issue = "116909")]
#[must_use = "this returns the result of the operation, without modifying the original"]
pub const fn to_le_bytes(self) -> [u8; 2] {
self.to_bits().to_le_bytes()
Expand Down Expand Up @@ -1033,7 +1033,7 @@ impl f16 {
/// ```
#[inline]
#[unstable(feature = "f16", issue = "116909")]
#[rustc_const_unstable(feature = "f16_const", issue = "116909")]
#[rustc_const_unstable(feature = "f16", issue = "116909")]
#[must_use = "this returns the result of the operation, without modifying the original"]
pub const fn to_ne_bytes(self) -> [u8; 2] {
self.to_bits().to_ne_bytes()
Expand All @@ -1057,7 +1057,7 @@ impl f16 {
#[inline]
#[must_use]
#[unstable(feature = "f16", issue = "116909")]
#[rustc_const_unstable(feature = "f16_const", issue = "116909")]
#[rustc_const_unstable(feature = "f16", issue = "116909")]
pub const fn from_be_bytes(bytes: [u8; 2]) -> Self {
Self::from_bits(u16::from_be_bytes(bytes))
}
Expand All @@ -1080,7 +1080,7 @@ impl f16 {
#[inline]
#[must_use]
#[unstable(feature = "f16", issue = "116909")]
#[rustc_const_unstable(feature = "f16_const", issue = "116909")]
#[rustc_const_unstable(feature = "f16", issue = "116909")]
pub const fn from_le_bytes(bytes: [u8; 2]) -> Self {
Self::from_bits(u16::from_le_bytes(bytes))
}
Expand Down Expand Up @@ -1114,7 +1114,7 @@ impl f16 {
#[inline]
#[must_use]
#[unstable(feature = "f16", issue = "116909")]
#[rustc_const_unstable(feature = "f16_const", issue = "116909")]
#[rustc_const_unstable(feature = "f16", issue = "116909")]
pub const fn from_ne_bytes(bytes: [u8; 2]) -> Self {
Self::from_bits(u16::from_ne_bytes(bytes))
}
Expand Down
4 changes: 2 additions & 2 deletions src/tools/clippy/tests/ui/transmute_float_to_int.fixed
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![warn(clippy::transmute_float_to_int)]
#![allow(clippy::missing_transmute_annotations)]
#![feature(f128, f128_const)]
#![feature(f16, f16_const)]
#![feature(f128)]
#![feature(f16)]

fn float_to_int() {
let _: u32 = unsafe { 1f32.to_bits() };
Expand Down
4 changes: 2 additions & 2 deletions src/tools/clippy/tests/ui/transmute_float_to_int.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![warn(clippy::transmute_float_to_int)]
#![allow(clippy::missing_transmute_annotations)]
#![feature(f128, f128_const)]
#![feature(f16, f16_const)]
#![feature(f128)]
#![feature(f16)]

fn float_to_int() {
let _: u32 = unsafe { std::mem::transmute(1f32) };
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/float/classify-runtime-const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

// This tests the float classification functions, for regular runtime code and for const evaluation.

#![feature(f16_const)]
#![feature(f128_const)]
#![feature(f16)]
#![feature(f128)]

use std::num::FpCategory::*;

Expand Down
2 changes: 0 additions & 2 deletions tests/ui/float/conv-bits-runtime-const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

#![feature(f16)]
#![feature(f128)]
#![feature(f16_const)]
#![feature(f128_const)]
#![allow(unused_macro_rules)]

use std::hint::black_box;
Expand Down