mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
Fix some no_move errors
This commit is contained in:
parent
63714ebc5f
commit
dcb0a0eab6
17 changed files with 46 additions and 34 deletions
|
@ -4492,6 +4492,7 @@ class CGDictionary(CGThing):
|
|||
for m in self.memberInfo]
|
||||
|
||||
return (string.Template(
|
||||
"#[no_move]\n" +
|
||||
"pub struct ${selfName} {\n" +
|
||||
"${inheritance}" +
|
||||
"\n".join(memberDecls) + "\n" +
|
||||
|
|
|
@ -34,6 +34,7 @@ pub enum GlobalRef<'a> {
|
|||
}
|
||||
|
||||
/// A stack-based rooted reference to a global object.
|
||||
#[no_move]
|
||||
pub enum GlobalRoot {
|
||||
/// A root for a `Window` object.
|
||||
Window(Root<window::Window>),
|
||||
|
|
|
@ -152,7 +152,9 @@ pub mod trace;
|
|||
/// Generated JS-Rust bindings.
|
||||
#[allow(missing_docs, non_snake_case)]
|
||||
pub mod codegen {
|
||||
#[allow(unrooted_must_root)]
|
||||
// FIXME(#5853) we shouldn't need to
|
||||
// allow moved_no_move here
|
||||
#[allow(unrooted_must_root, moved_no_move)]
|
||||
pub mod Bindings;
|
||||
pub mod InterfaceTypes;
|
||||
pub mod InheritTypes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue