Skip to content

Commit 9ae5f52

Browse files
committed
Auto merge of #157882 - jhpratt:rollup-0Jd14n0, r=jhpratt
Rollup of 5 pull requests Successful merges: - #157837 ([tiny] Remove some unecessary `.into()` calls) - #157538 (std: move `PidFd` to `sys::process`) - #157791 (Add regression test for pclmulqdq inlining across target feature) - #157867 (std: sys: xous: clamp condvar wait_timeout instead of truncating) - #157876 (Stabilize `#![feature(box_as_ptr)]`)
2 parents 1f08727 + 001c6b1 commit 9ae5f52

20 files changed

Lines changed: 58 additions & 36 deletions

File tree

compiler/rustc_builtin_macros/src/autodiff.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,7 @@ mod llvm_enzyme {
567567
PatKind::Ident(_, ident, _) => ecx.expr_path(ecx.path_ident(span, ident)),
568568
_ => todo!(),
569569
})
570-
.collect::<ThinVec<_>>()
571-
.into(),
570+
.collect::<ThinVec<_>>(),
572571
);
573572

574573
let enzyme_path_idents = ecx.std_path(&[sym::intrinsics, sym::autodiff]);

compiler/rustc_const_eval/src/interpret/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
773773
_ => return interp_ok(false),
774774
}
775775

776-
trace!("{:?}", self.dump_place(&dest.clone().into()));
776+
trace!("{:?}", self.dump_place(&dest));
777777
self.return_to_block(ret)?;
778778
interp_ok(true)
779779
}

compiler/rustc_middle/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
// tidy-alphabetical-start
2828
#![allow(internal_features)]
2929
#![allow(rustc::direct_use_of_rustc_type_ir)]
30+
#![cfg_attr(bootstrap, feature(box_as_ptr))]
3031
#![cfg_attr(doc, feature(intra_doc_pointers))]
3132
#![feature(allocator_api)]
3233
#![feature(associated_type_defaults)]
33-
#![feature(box_as_ptr)]
3434
#![feature(closure_track_caller)]
3535
#![feature(const_default)]
3636
#![feature(const_trait_impl)]

compiler/rustc_symbol_mangling/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ fn compute_symbol_name<'tcx>(
219219
// However, we don't have the wasm import module map there yet.
220220
tcx.is_foreign_item(def_id)
221221
&& tcx.sess.target.is_like_wasm
222-
&& tcx.wasm_import_module_map(def_id.krate).contains_key(&def_id.into())
222+
&& tcx.wasm_import_module_map(def_id.krate).contains_key(&def_id)
223223
};
224224

225225
if !wasm_import_module_exception_force_mangling {

compiler/rustc_traits/src/normalize_projection_ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn normalize_canonicalized_projection<'tcx>(
5454
let normalized_term = traits::normalize_projection_term(
5555
selcx,
5656
param_env,
57-
goal.into(),
57+
goal,
5858
cause,
5959
0,
6060
&mut obligations,

library/alloc/src/boxed.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,8 +1763,6 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
17631763
/// Due to the aliasing guarantee, the following code is legal:
17641764
///
17651765
/// ```rust
1766-
/// #![feature(box_as_ptr)]
1767-
///
17681766
/// unsafe {
17691767
/// let mut b = Box::new(0);
17701768
/// let ptr1 = Box::as_mut_ptr(&mut b);
@@ -1778,7 +1776,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
17781776
///
17791777
/// [`as_mut_ptr`]: Self::as_mut_ptr
17801778
/// [`as_ptr`]: Self::as_ptr
1781-
#[unstable(feature = "box_as_ptr", issue = "129090")]
1779+
#[stable(feature = "box_as_ptr", since = "CURRENT_RUSTC_VERSION")]
17821780
#[rustc_never_returns_null_ptr]
17831781
#[rustc_as_ptr]
17841782
#[inline]
@@ -1809,8 +1807,6 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
18091807
/// Due to the aliasing guarantee, the following code is legal:
18101808
///
18111809
/// ```rust
1812-
/// #![feature(box_as_ptr)]
1813-
///
18141810
/// unsafe {
18151811
/// let mut v = Box::new(0);
18161812
/// let ptr1 = Box::as_ptr(&v);
@@ -1827,7 +1823,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
18271823
///
18281824
/// [`as_mut_ptr`]: Self::as_mut_ptr
18291825
/// [`as_ptr`]: Self::as_ptr
1830-
#[unstable(feature = "box_as_ptr", issue = "129090")]
1826+
#[stable(feature = "box_as_ptr", since = "CURRENT_RUSTC_VERSION")]
18311827
#[rustc_never_returns_null_ptr]
18321828
#[rustc_as_ptr]
18331829
#[inline]

library/core/src/mem/maybe_dangling.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use crate::{mem, ptr};
1313
/// executing (particularly in concurrent code). As a somewhat absurd example, consider this code:
1414
///
1515
/// ```rust,no_run
16-
/// #![feature(box_as_ptr)]
1716
/// # use std::alloc::{dealloc, Layout};
1817
/// # use std::mem;
1918
///
@@ -35,7 +34,7 @@ use crate::{mem, ptr};
3534
///
3635
// FIXME: remove `no_run` once the semantics are actually implemented
3736
/// ```rust,no_run
38-
/// #![feature(maybe_dangling, box_as_ptr)]
37+
/// #![feature(maybe_dangling)]
3938
/// # use std::alloc::{dealloc, Layout};
4039
/// # use std::mem::{self, MaybeDangling};
4140
///

library/std/src/os/linux/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::os::unix::io::{AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, Owned
99
use crate::process::{self, ExitStatus};
1010
use crate::sys::{AsInner, AsInnerMut, FromInner, IntoInner};
1111
#[cfg(not(doc))]
12-
use crate::sys::{fd::FileDesc, linux::pidfd::PidFd as InnerPidFd};
12+
use crate::sys::{fd::FileDesc, process::PidFd as InnerPidFd};
1313

1414
#[cfg(doc)]
1515
struct InnerPidFd;

library/std/src/sys/pal/unix/linux/mod.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

library/std/src/sys/pal/unix/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ pub mod conf;
66
#[cfg(target_os = "fuchsia")]
77
pub mod fuchsia;
88
pub mod futex;
9-
#[cfg(target_os = "linux")]
10-
pub mod linux;
119
pub mod stack_overflow;
1210
pub mod sync;
1311
pub mod thread_parking;

0 commit comments

Comments
 (0)