aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo_arc
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-01-22 13:28:08 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-01-22 17:41:26 +0100
commit4be30960400dc25c68d7d0cb8da2de3cc4682b56 (patch)
tree3da3911b66062993730b2b4affb630c44aa7a0fc /components/servo_arc
parentb78ac6ba6a40929dad3ec00bf8c0e99fdb0f3437 (diff)
downloadservo-4be30960400dc25c68d7d0cb8da2de3cc4682b56.tar.gz
servo-4be30960400dc25c68d7d0cb8da2de3cc4682b56.zip
Add some FIXME comments about using ptr::NonNull
Diffstat (limited to 'components/servo_arc')
-rw-r--r--components/servo_arc/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/servo_arc/lib.rs b/components/servo_arc/lib.rs
index d7694901130..1301a8e6611 100644
--- a/components/servo_arc/lib.rs
+++ b/components/servo_arc/lib.rs
@@ -83,6 +83,7 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
/// that this is all a temporary hack, this restriction is fine for now.
///
/// [1]: https://github.com/rust-lang/rust/issues/27730
+// FIXME: remove this and use std::ptr::NonNull when Firefox requires Rust 1.25+
pub struct NonZeroPtrMut<T: ?Sized + 'static>(&'static mut T);
impl<T: ?Sized> NonZeroPtrMut<T> {
pub fn new(ptr: *mut T) -> Self {