about summary refs log tree commit diff
path: root/src/libcore/marker.rs
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2018-11-04 13:45:26 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2018-12-04 10:17:36 +0100
commit1894a5fe2c72a1e22897026f34e5f9035cc169ff (patch)
tree6ed8ba0526340f76b4918ba8159f53f47f4177c0 /src/libcore/marker.rs
parent081c49783f5cfc24f66f3ac36244d816567cc120 (diff)
downloadrust-1894a5fe2c72a1e22897026f34e5f9035cc169ff.tar.gz
rust-1894a5fe2c72a1e22897026f34e5f9035cc169ff.zip
Also make immutable references to non-freeze restricted value range types unsafe
Diffstat (limited to 'src/libcore/marker.rs')
-rw-r--r--src/libcore/marker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs
index 3bcdfabbb24..23f07773f3f 100644
--- a/src/libcore/marker.rs
+++ b/src/libcore/marker.rs
@@ -596,7 +596,7 @@ mod impls {
 /// This affects, for example, whether a `static` of that type is
 /// placed in read-only static memory or writable static memory.
 #[lang = "freeze"]
-unsafe auto trait Freeze {}
+pub(crate) unsafe auto trait Freeze {}
 
 impl<T: ?Sized> !Freeze for UnsafeCell<T> {}
 unsafe impl<T: ?Sized> Freeze for PhantomData<T> {}