mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
Add some FIXME comments about using ptr::NonNull
This commit is contained in:
parent
b78ac6ba6a
commit
4be3096040
3 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
use std::marker::PhantomData;
|
||||
|
||||
// FIXME: remove this and use std::ptr::NonNull when Firefox requires Rust 1.25+
|
||||
pub struct NonZeroPtr<T: 'static>(&'static T);
|
||||
|
||||
impl<T: 'static> NonZeroPtr<T> {
|
||||
|
@ -57,4 +58,4 @@ impl<'a, T> From<&'a mut T> for Shared<T> {
|
|||
fn from(reference: &'a mut T) -> Self {
|
||||
unsafe { Shared::new_unchecked(reference) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue