mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Make RootedVec/RootCollection #[no_move]; improve code (fixes #5737)
This commit is contained in:
parent
dcb0a0eab6
commit
369a568264
7 changed files with 8 additions and 8 deletions
|
@ -401,6 +401,7 @@ impl VecRootableType for *mut JSObject {
|
|||
/// A vector of items that are rooted for the lifetime
|
||||
/// of this struct
|
||||
#[allow(unrooted_must_root)]
|
||||
#[no_move]
|
||||
pub struct RootedVec<T> {
|
||||
v: Vec<T>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue