diff --git a/src/libcore/task/wake.rs b/src/libcore/task/wake.rs index d770536ef4279..bcea6d364a519 100644 --- a/src/libcore/task/wake.rs +++ b/src/libcore/task/wake.rs @@ -119,7 +119,7 @@ impl LocalWaker { /// For this function to be used safely, it must be sound to call `inner.wake_local()` /// on the current thread. #[inline] - pub unsafe fn new(inner: NonNull) -> Self { + pub const unsafe fn new(inner: NonNull) -> Self { LocalWaker { inner } }