about summary refs log tree commit diff
path: root/library/alloc/src/lib.rs
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/alloc/src/lib.rs
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/alloc/src/lib.rs')
-rw-r--r--library/alloc/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs
index 8619467c2d9..ce71cd600fc 100644
--- a/library/alloc/src/lib.rs
+++ b/library/alloc/src/lib.rs
@@ -109,6 +109,7 @@
 #![feature(core_intrinsics)]
 #![feature(const_eval_select)]
 #![feature(const_pin)]
+#![feature(const_waker)]
 #![feature(cstr_from_bytes_until_nul)]
 #![feature(dispatch_from_dyn)]
 #![cfg_attr(not(bootstrap), feature(error_generic_member_access))]