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 8 pull requests #109086

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
318be2b
Stabilize atomic_as_ptr
tgross35 Feb 24, 2023
daf31a1
remove unused imports
stlankes Feb 26, 2023
ae27762
use `as_ptr` to determine the address of atomics
stlankes Feb 26, 2023
e0d9170
Change text -> rust highlighting in sanitizer.md
tgross35 Mar 10, 2023
b16d6cc
Document BinOp::is_checkable
tmiasko Mar 12, 2023
58c7b67
create `config::tests::detect_src_and_out` test for bootstrap
onur-ozkan Mar 12, 2023
ed8dc5d
simd-wide-sum test: adapt for LLVM 17 codegen change
krasimirgg Mar 13, 2023
c32527f
Treat projections with infer as placeholder during fast reject in new…
compiler-errors Mar 7, 2023
868aa42
Add a test that used to take forever to compile
compiler-errors Mar 12, 2023
84d254e
Better names?
compiler-errors Mar 12, 2023
04dfedb
Don't use fd-lock on Solaris in bootstrap
psumbera Mar 13, 2023
1666418
Rollup merge of #108419 - tgross35:atomic-as-ptr, r=m-ou-se
matthiaskrgr Mar 13, 2023
bded0f1
Rollup merge of #108507 - hermitcore:new, r=m-ou-se
matthiaskrgr Mar 13, 2023
bb5417d
Rollup merge of #108607 - psumbera:solaris-no-flock-bootstrap, r=albe…
matthiaskrgr Mar 13, 2023
350df98
Rollup merge of #108830 - compiler-errors:new-solver-fast-reject-fast…
matthiaskrgr Mar 13, 2023
d461444
Rollup merge of #108997 - tgross35:patch-1, r=JohnTitor
matthiaskrgr Mar 13, 2023
3f1c707
Rollup merge of #109055 - ozkanonur:detect_src_and_out, r=albertlarsan68
matthiaskrgr Mar 13, 2023
4bfcabd
Rollup merge of #109058 - tmiasko:is-checkable, r=jackh726
matthiaskrgr Mar 13, 2023
591c923
Rollup merge of #109081 - krasimirgg:llvm-17-simd-wide-sum, r=nikic
matthiaskrgr Mar 13, 2023
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
Next Next commit
Stabilize atomic_as_ptr
  • Loading branch information
tgross35 committed Feb 24, 2023
commit 318be2bee9259852bc95728269916a45f59fa5aa
13 changes: 7 additions & 6 deletions library/core/src/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ impl AtomicBool {
/// ```ignore (extern-declaration)
/// # fn main() {
/// use std::sync::atomic::AtomicBool;
///
/// extern "C" {
/// fn my_atomic_op(arg: *mut bool);
/// }
Expand All @@ -927,7 +928,8 @@ impl AtomicBool {
/// # }
/// ```
#[inline]
#[unstable(feature = "atomic_mut_ptr", reason = "recently added", issue = "66893")]
#[stable(feature = "atomic_as_ptr", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "atomic_as_ptr", since = "CURRENT_RUSTC_VERSION")]
pub const fn as_ptr(&self) -> *mut bool {
self.v.get().cast()
}
Expand Down Expand Up @@ -1802,7 +1804,6 @@ impl<T> AtomicPtr<T> {
/// # Examples
///
/// ```ignore (extern-declaration)
/// #![feature(atomic_mut_ptr)]
/// use std::sync::atomic::AtomicPtr;
///
/// extern "C" {
Expand All @@ -1818,7 +1819,8 @@ impl<T> AtomicPtr<T> {
/// }
/// ```
#[inline]
#[unstable(feature = "atomic_mut_ptr", reason = "recently added", issue = "66893")]
#[stable(feature = "atomic_as_ptr", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "atomic_as_ptr", since = "CURRENT_RUSTC_VERSION")]
pub const fn as_ptr(&self) -> *mut *mut T {
self.p.get()
}
Expand Down Expand Up @@ -2724,9 +2726,8 @@ macro_rules! atomic_int {
/// # }
/// ```
#[inline]
#[unstable(feature = "atomic_mut_ptr",
reason = "recently added",
issue = "66893")]
#[stable(feature = "atomic_as_ptr", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "atomic_as_ptr", since = "CURRENT_RUSTC_VERSION")]
pub const fn as_ptr(&self) -> *mut $int_type {
self.v.get()
}
Expand Down
1 change: 0 additions & 1 deletion library/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@
#![feature(utf8_chunks)]
//
// Library features (core):
#![feature(atomic_mut_ptr)]
#![feature(char_internals)]
#![feature(core_intrinsics)]
#![feature(duration_constants)]
Expand Down