mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make stmt part of unrooted_must_root handle type parameters (fixes #6651)
This commit is contained in:
parent
126f5ae8f0
commit
f6f0a7e4aa
7 changed files with 64 additions and 18 deletions
|
@ -382,6 +382,7 @@ pub unsafe fn trace_roots(tracer: *mut JSTracer) {
|
|||
/// are additive, so this object's destruction will not invalidate other roots
|
||||
/// for the same JS value. `Root`s cannot outlive the associated
|
||||
/// `RootCollection` object.
|
||||
#[allow_unrooted_interior]
|
||||
pub struct Root<T: Reflectable> {
|
||||
/// Reference to rooted value that must not outlive this container
|
||||
ptr: NonZero<*const T>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue