diff options
Diffstat (limited to 'components/script/dom/servoparser')
-rw-r--r-- | components/script/dom/servoparser/async_html.rs | 6 | ||||
-rw-r--r-- | components/script/dom/servoparser/html.rs | 6 | ||||
-rw-r--r-- | components/script/dom/servoparser/mod.rs | 12 | ||||
-rw-r--r-- | components/script/dom/servoparser/prefetch.rs | 2 | ||||
-rw-r--r-- | components/script/dom/servoparser/xml.rs | 6 |
5 files changed, 16 insertions, 16 deletions
diff --git a/components/script/dom/servoparser/async_html.rs b/components/script/dom/servoparser/async_html.rs index 08e3238754b..2e24623e264 100644 --- a/components/script/dom/servoparser/async_html.rs +++ b/components/script/dom/servoparser/async_html.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -#![allow(unrooted_must_root)] +#![allow(crown::unrooted_must_root)] use std::borrow::Cow; use std::cell::Cell; @@ -204,7 +204,7 @@ fn create_buffer_queue(mut buffers: VecDeque<SendTendril<UTF8>>) -> BufferQueue // |_____________| |_______________| // #[derive(JSTraceable, MallocSizeOf)] -#[unrooted_must_root_lint::must_root] +#[crown::unrooted_must_root_lint::must_root] pub struct Tokenizer { document: Dom<Document>, #[ignore_malloc_size_of = "Defined in std"] @@ -668,7 +668,7 @@ impl Sink { } } -#[allow(unrooted_must_root)] +#[allow(crown::unrooted_must_root)] impl TreeSink for Sink { type Output = Self; fn finish(self) -> Self { diff --git a/components/script/dom/servoparser/html.rs b/components/script/dom/servoparser/html.rs index cb98ca785a0..fdca7ca58fa 100644 --- a/components/script/dom/servoparser/html.rs +++ b/components/script/dom/servoparser/html.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -#![allow(unrooted_must_root)] +#![allow(crown::unrooted_must_root)] use std::io; @@ -31,7 +31,7 @@ use crate::dom::processinginstruction::ProcessingInstruction; use crate::dom::servoparser::{ParsingAlgorithm, Sink}; #[derive(JSTraceable, MallocSizeOf)] -#[unrooted_must_root_lint::must_root] +#[crown::unrooted_must_root_lint::must_root] pub struct Tokenizer { #[ignore_malloc_size_of = "Defined in html5ever"] inner: HtmlTokenizer<TreeBuilder<Dom<Node>, Sink>>, @@ -109,7 +109,7 @@ unsafe impl CustomTraceable for HtmlTokenizer<TreeBuilder<Dom<Node>, Sink>> { impl HtmlTracer for Tracer { type Handle = Dom<Node>; - #[allow(unrooted_must_root)] + #[allow(crown::unrooted_must_root)] fn trace_handle(&self, node: &Dom<Node>) { unsafe { node.trace(self.0); diff --git a/components/script/dom/servoparser/mod.rs b/components/script/dom/servoparser/mod.rs index a21bec9b8c6..632a0442548 100644 --- a/components/script/dom/servoparser/mod.rs +++ b/components/script/dom/servoparser/mod.rs @@ -422,7 +422,7 @@ impl ServoParser { self.script_nesting_level() > 0 && !self.aborted.get() } - #[allow(unrooted_must_root)] + #[allow(crown::unrooted_must_root)] fn new_inherited( document: &Document, tokenizer: Tokenizer, @@ -447,7 +447,7 @@ impl ServoParser { } } - #[allow(unrooted_must_root)] + #[allow(crown::unrooted_must_root)] fn new( document: &Document, tokenizer: Tokenizer, @@ -693,7 +693,7 @@ enum ParserKind { } #[derive(JSTraceable, MallocSizeOf)] -#[unrooted_must_root_lint::must_root] +#[crown::unrooted_must_root_lint::must_root] enum Tokenizer { Html(self::html::Tokenizer), AsyncHtml(self::async_html::Tokenizer), @@ -1023,7 +1023,7 @@ pub struct FragmentContext<'a> { pub form_elem: Option<&'a Node>, } -#[allow(unrooted_must_root)] +#[allow(crown::unrooted_must_root)] fn insert( parent: &Node, reference_child: Option<&Node>, @@ -1063,7 +1063,7 @@ fn insert( } #[derive(JSTraceable, MallocSizeOf)] -#[unrooted_must_root_lint::must_root] +#[crown::unrooted_must_root_lint::must_root] pub struct Sink { #[no_trace] base_url: ServoUrl, @@ -1086,7 +1086,7 @@ impl Sink { } } -#[allow(unrooted_must_root)] // FIXME: really? +#[allow(crown::unrooted_must_root)] // FIXME: really? impl TreeSink for Sink { type Output = Self; fn finish(self) -> Self { diff --git a/components/script/dom/servoparser/prefetch.rs b/components/script/dom/servoparser/prefetch.rs index 65c103e66df..7ccca449d15 100644 --- a/components/script/dom/servoparser/prefetch.rs +++ b/components/script/dom/servoparser/prefetch.rs @@ -23,7 +23,7 @@ use crate::script_module::ScriptFetchOptions; use crate::stylesheet_loader::stylesheet_fetch_request; #[derive(JSTraceable, MallocSizeOf)] -#[unrooted_must_root_lint::must_root] +#[crown::unrooted_must_root_lint::must_root] pub struct Tokenizer { #[ignore_malloc_size_of = "Defined in html5ever"] inner: HtmlTokenizer<PrefetchSink>, diff --git a/components/script/dom/servoparser/xml.rs b/components/script/dom/servoparser/xml.rs index 583c90fba61..d07d6bc6afb 100644 --- a/components/script/dom/servoparser/xml.rs +++ b/components/script/dom/servoparser/xml.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -#![allow(unrooted_must_root)] +#![allow(crown::unrooted_must_root)] use html5ever::tokenizer::TokenizerResult; use js::jsapi::JSTracer; @@ -19,7 +19,7 @@ use crate::dom::node::Node; use crate::dom::servoparser::{ParsingAlgorithm, Sink}; #[derive(JSTraceable, MallocSizeOf)] -#[unrooted_must_root_lint::must_root] +#[crown::unrooted_must_root_lint::must_root] pub struct Tokenizer { #[ignore_malloc_size_of = "Defined in xml5ever"] inner: XmlTokenizer<XmlTreeBuilder<Dom<Node>, Sink>>, @@ -67,7 +67,7 @@ unsafe impl CustomTraceable for XmlTokenizer<XmlTreeBuilder<Dom<Node>, Sink>> { impl XmlTracer for Tracer { type Handle = Dom<Node>; - #[allow(unrooted_must_root)] + #[allow(crown::unrooted_must_root)] fn trace_handle(&self, node: &Dom<Node>) { unsafe { node.trace(self.0); |