Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
431c500
Print env var in --print=deployment-target
madsmtm Nov 14, 2024
72d2db7
Implement lint against `Symbol::intern` on a string literal
clubby789 Nov 27, 2024
71b698c
Replace `Symbol::intern` calls with preinterned symbols
clubby789 Nov 27, 2024
0554993
Don't suggest restricting bound with unstable traits on stable
estebank Nov 27, 2024
e3dfae8
reword trait bound suggestion message to include the bounds
estebank Nov 28, 2024
7e38a45
Add test for lack of suggestion in stable
estebank Nov 28, 2024
c34079a
Use trait name instead of full constraint in suggestion message
estebank Nov 28, 2024
5c9e5d1
Mention type parameter in more cases and don't suggest ~const bound a…
estebank Nov 28, 2024
442ec3d
Account for `impl Trait` in "add bound" suggestion message
estebank Nov 28, 2024
055dbc5
fix rustdoc test
estebank Nov 28, 2024
6b758e2
Do not talk about "trait `<Foo = Bar>`"
estebank Nov 28, 2024
05e6714
Use run-make `diff` output for stable output test
estebank Nov 29, 2024
2d61c09
reduce false positives on some common cases from if-let-rescope
dingxiangfei2009 Dec 2, 2024
69a9312
Stabilize noop_waker
eholk Nov 16, 2024
2b88e4c
stabilize const_{size,align}_of_val
RalfJung Dec 2, 2024
2f45ea5
rustc_const_stable not needed for consts
eholk Dec 2, 2024
0609b99
Structurally resolve in probe_adt
compiler-errors Nov 28, 2024
ebb9a38
document -Zrandomize-layout in the unstable book
the8472 Dec 2, 2024
2807ba7
Use correct `hir_id` for array const arg infers
BoxyUwU Dec 3, 2024
3b2ff90
Add ui test for const evaluation fail when type is too big.
LFS6502 Dec 3, 2024
9c5b8ea
Rollup merge of #133041 - madsmtm:print-deployment-target-env-var, r=…
jhpratt Dec 3, 2024
36b14a2
Rollup merge of #133089 - eholk:stabilize-noop-waker, r=dtolnay
jhpratt Dec 3, 2024
23703d6
Rollup merge of #133522 - estebank:dont-suggest-unstable-trait, r=com…
jhpratt Dec 3, 2024
90b30d4
Rollup merge of #133545 - clubby789:symbol-intern-lit, r=jieyouxu
jhpratt Dec 3, 2024
dd03d84
Rollup merge of #133558 - compiler-errors:structurally-resolve-probe-…
jhpratt Dec 3, 2024
712e0e3
Rollup merge of #133753 - dingxiangfei2009:reduce-false-positive-if-l…
jhpratt Dec 3, 2024
df66045
Rollup merge of #133762 - RalfJung:const-size-of-val, r=workingjubilee
jhpratt Dec 3, 2024
c541427
Rollup merge of #133777 - the8472:document-randomize-layout, r=jieyouxu
jhpratt Dec 3, 2024
3976c91
Rollup merge of #133779 - BoxyUwU:array_const_arg_infer_hir_id, r=com…
jhpratt Dec 3, 2024
02ae277
Rollup merge of #133785 - HypheX:add-ui-test, r=compiler-errors
jhpratt Dec 3, 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
Prev Previous commit
Next Next commit
Stabilize noop_waker
Co-authored-by: zachs18 <[email protected]>
  • Loading branch information
eholk and zachs18 committed Dec 2, 2024
commit 69a9312c7185dab5c6dd22ff80225a4ff9cfb339
1 change: 0 additions & 1 deletion library/alloc/src/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ fn raw_waker<W: Wake + Send + Sync + 'static>(waker: Arc<W>) -> RawWaker {
///
/// ```rust
/// #![feature(local_waker)]
/// #![feature(noop_waker)]
/// use std::task::{LocalWake, ContextBuilder, LocalWaker, Waker};
/// use std::future::Future;
/// use std::pin::Pin;
Expand Down
13 changes: 5 additions & 8 deletions library/core/src/task/wake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ impl RawWaker {
RawWaker { data, vtable }
}

#[unstable(feature = "noop_waker", issue = "98286")]
#[stable(feature = "noop_waker", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "noop_waker", since = "CURRENT_RUSTC_VERSION")]
const NOOP: RawWaker = {
const VTABLE: RawWakerVTable = RawWakerVTable::new(
// Cloning just returns a new no-op raw waker
Expand Down Expand Up @@ -283,7 +284,6 @@ impl fmt::Debug for Context<'_> {
/// # Examples
/// ```
/// #![feature(local_waker)]
/// #![feature(noop_waker)]
/// use std::task::{ContextBuilder, LocalWaker, Waker, Poll};
/// use std::future::Future;
///
Expand Down Expand Up @@ -555,8 +555,6 @@ impl Waker {
/// # Examples
///
/// ```
/// #![feature(noop_waker)]
///
/// use std::future::Future;
/// use std::task;
///
Expand All @@ -567,7 +565,8 @@ impl Waker {
/// ```
#[inline]
#[must_use]
#[unstable(feature = "noop_waker", issue = "98286")]
#[stable(feature = "noop_waker", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "noop_waker", since = "CURRENT_RUSTC_VERSION")]
pub const fn noop() -> &'static Waker {
const WAKER: &Waker = &Waker { waker: RawWaker::NOOP };
WAKER
Expand Down Expand Up @@ -850,8 +849,6 @@ impl LocalWaker {
///
/// ```
/// #![feature(local_waker)]
/// #![feature(noop_waker)]
///
/// use std::future::Future;
/// use std::task::{ContextBuilder, LocalWaker, Waker, Poll};
///
Expand All @@ -864,7 +861,7 @@ impl LocalWaker {
/// ```
#[inline]
#[must_use]
#[unstable(feature = "noop_waker", issue = "98286")]
#[unstable(feature = "local_waker", issue = "118959")]
pub const fn noop() -> &'static LocalWaker {
const WAKER: &LocalWaker = &LocalWaker { waker: RawWaker::NOOP };
WAKER
Expand Down
1 change: 0 additions & 1 deletion library/core/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
#![feature(maybe_uninit_write_slice)]
#![feature(min_specialization)]
#![feature(never_type)]
#![feature(noop_waker)]
#![feature(num_midpoint_signed)]
#![feature(numfmt)]
#![feature(pattern)]
Expand Down
2 changes: 1 addition & 1 deletion src/tools/miri/tests/pass/async-closure-captures.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Same as rustc's `tests/ui/async-await/async-closures/captures.rs`, keep in sync

#![feature(async_closure, noop_waker)]
#![feature(async_closure)]

use std::future::Future;
use std::pin::pin;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/miri/tests/pass/async-closure-drop.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(async_closure, noop_waker, async_fn_traits)]
#![feature(async_closure, async_fn_traits)]

use std::future::Future;
use std::pin::pin;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/miri/tests/pass/async-closure.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(async_closure, noop_waker, async_fn_traits)]
#![feature(async_closure, async_fn_traits)]
#![allow(unused)]

use std::future::Future;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/miri/tests/pass/async-drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// please consider modifying rustc's async drop test at
// `tests/ui/async-await/async-drop.rs`.

#![feature(async_drop, impl_trait_in_assoc_type, noop_waker, async_closure)]
#![feature(async_drop, impl_trait_in_assoc_type, async_closure)]
#![allow(incomplete_features, dead_code)]

// FIXME(zetanumbers): consider AsyncDestruct::async_drop cleanup tests
Expand Down
1 change: 0 additions & 1 deletion src/tools/miri/tests/pass/async-fn.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![feature(never_type)]
#![feature(noop_waker)]

use std::future::Future;

Expand Down
1 change: 0 additions & 1 deletion src/tools/miri/tests/pass/dyn-star.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![feature(dyn_star)]
#![allow(incomplete_features)]
#![feature(custom_inner_attributes)]
#![feature(noop_waker)]
// rustfmt destroys `dyn* Trait` syntax
#![rustfmt::skip]

Expand Down
1 change: 0 additions & 1 deletion src/tools/miri/tests/pass/future-self-referential.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@revisions: stack tree
//@[tree]compile-flags: -Zmiri-tree-borrows
#![feature(noop_waker)]

use std::future::*;
use std::marker::PhantomPinned;
Expand Down
2 changes: 0 additions & 2 deletions src/tools/miri/tests/pass/issues/issue-miri-2068.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(noop_waker)]

use std::future::Future;
use std::pin::Pin;
use std::task::{Context, Poll, Waker};
Expand Down
1 change: 0 additions & 1 deletion src/tools/miri/tests/pass/move-data-across-await-point.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(noop_waker)]
use std::future::Future;
use std::ptr;

Expand Down
Loading
Loading