diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-01-22 13:28:08 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-01-22 17:41:26 +0100 |
commit | 4be30960400dc25c68d7d0cb8da2de3cc4682b56 (patch) | |
tree | 3da3911b66062993730b2b4affb630c44aa7a0fc /components/servo_arc | |
parent | b78ac6ba6a40929dad3ec00bf8c0e99fdb0f3437 (diff) | |
download | servo-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.rs | 1 |
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 { |