mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Clean up some code related to #[no_move].
The patch makes RootCollection a bit safer by making the StackRootTLS hold it in place. The use of no_move in CodeGenRust was leftover from when roots couldn't be moved.
This commit is contained in:
parent
db1163b1ec
commit
1a50fce67c
5 changed files with 25 additions and 24 deletions
|
@ -149,9 +149,7 @@ pub mod utils;
|
|||
/// Generated JS-Rust bindings.
|
||||
#[allow(missing_docs, non_snake_case)]
|
||||
pub mod codegen {
|
||||
// FIXME(#5853) we shouldn't need to
|
||||
// allow moved_no_move here
|
||||
#[allow(unrooted_must_root, moved_no_move)]
|
||||
#[allow(unrooted_must_root)]
|
||||
pub mod Bindings {
|
||||
include!(concat!(env!("OUT_DIR"), "/Bindings/mod.rs"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue