about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-09-19 17:55:19 +0200
committerGitHub <noreply@github.com>2022-09-19 17:55:19 +0200
commitea076a4f9fef9f9d799530aaa6bef70d6fb435eb (patch)
treefa667cc9f526440d29c1753bae8ffbdae2ecac0e /library/std/src
parent27b1b04065edbb2c33f3790defc9f93fb4cefd02 (diff)
parent8e848dc23f7c5e809553dc81072178c34066cc77 (diff)
downloadrust-ea076a4f9fef9f9d799530aaa6bef70d6fb435eb.tar.gz
rust-ea076a4f9fef9f9d799530aaa6bef70d6fb435eb.zip
Rollup merge of #101798 - y86-dev:const_waker, r=lcnr
Make `from_waker`, `waker` and `from_raw` unstably `const`

Make
- `Context::from_waker`
- `Context::waker`
- `Waker::from_raw`

`const`.

Also added a small test.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs
index bc4f1b27c2a..07b40f64ac2 100644
--- a/library/std/src/lib.rs
+++ b/library/std/src/lib.rs
@@ -315,6 +315,7 @@
 #![feature(strict_provenance)]
 #![feature(maybe_uninit_uninit_array)]
 #![feature(const_maybe_uninit_uninit_array)]
+#![feature(const_waker)]
 //
 // Library features (alloc):
 #![feature(alloc_layout_extra)]