aboutsummaryrefslogtreecommitdiff
path: root/src/loom/std/unsafe_cell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/loom/std/unsafe_cell.rs')
-rw-r--r--src/loom/std/unsafe_cell.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loom/std/unsafe_cell.rs b/src/loom/std/unsafe_cell.rs
index f2b03d8..66c1d79 100644
--- a/src/loom/std/unsafe_cell.rs
+++ b/src/loom/std/unsafe_cell.rs
@@ -2,7 +2,7 @@
pub(crate) struct UnsafeCell<T>(std::cell::UnsafeCell<T>);
impl<T> UnsafeCell<T> {
- pub(crate) fn new(data: T) -> UnsafeCell<T> {
+ pub(crate) const fn new(data: T) -> UnsafeCell<T> {
UnsafeCell(std::cell::UnsafeCell::new(data))
}