diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-01 14:13:50 -0500 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-27 02:53:35 +0530 |
commit | d761877ef692f46970315ee0008fe0f3254323eb (patch) | |
tree | 3b389c5f820d35570126b05632e739349045a275 /components/script/dom/bindings/utils.rs | |
parent | 7d656735616a6ab852e20a86f65428d1103ceca3 (diff) | |
download | servo-d761877ef692f46970315ee0008fe0f3254323eb.tar.gz servo-d761877ef692f46970315ee0008fe0f3254323eb.zip |
Add inheritance-checking lint
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 3482633ba67..9cf2c3eea47 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -346,9 +346,12 @@ pub fn reflect_dom_object<T: Reflectable> } /// A struct to store a reference to the reflector of a DOM object. -#[allow(raw_pointer_deriving, unrooted_must_root)] +// Allowing unused_attribute because the lint sometimes doesn't run in order +#[allow(raw_pointer_deriving, unrooted_must_root, unused_attributes)] #[deriving(PartialEq)] #[must_root] +#[servo_lang = "reflector"] +// If you're renaming or moving this field, update the path in plugins::reflector as well pub struct Reflector { object: Cell<*mut JSObject>, } |