Make enum/fn part of unrooted_must_root handle type parameters

This commit is contained in:
Manish Goregaokar 2015-07-21 23:41:19 +05:30
parent fda3eb6327
commit 521d8bc32e
3 changed files with 19 additions and 27 deletions

View file

@ -81,6 +81,7 @@ impl<T: Reflectable> JS<T> {
/// An unrooted reference to a DOM object for use in layout. `Layout*Helpers`
/// traits must be implemented on this.
#[allow_unrooted_interior]
pub struct LayoutJS<T> {
ptr: NonZero<*const T>
}

View file

@ -14,7 +14,7 @@ use std::rc::Rc;
/// Encapsulates a handle to a frame in a frame tree.
#[derive(JSTraceable)]
#[allow(unrooted_must_root)] // FIXME(#6686) this is wrong
#[allow(unrooted_must_root)] // FIXME(#6687) this is wrong
pub struct Page {
/// Pipeline id associated with this page.
id: PipelineId,