aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins/lib.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-01-03 16:17:06 -0800
committerManish Goregaokar <manishsmail@gmail.com>2019-01-04 09:34:04 -0800
commite28e73c81fcbed570955f2175d56ee794de6882a (patch)
tree9574591ce539ea4d458a31d7e37325b8646c3294 /components/script_plugins/lib.rs
parent7a64588efaf45f307677b4a025b241fe3fc3b380 (diff)
downloadservo-e28e73c81fcbed570955f2175d56ee794de6882a.tar.gz
servo-e28e73c81fcbed570955f2175d56ee794de6882a.zip
Exempt Rc<Promise> from unrooted_must_root
fixes #22504
Diffstat (limited to 'components/script_plugins/lib.rs')
-rw-r--r--components/script_plugins/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs
index 7fdfb10fcce..36c81ce6239 100644
--- a/components/script_plugins/lib.rs
+++ b/components/script_plugins/lib.rs
@@ -41,5 +41,6 @@ pub fn plugin_registrar(reg: &mut Registry) {
reg.register_late_lint_pass(Box::new(unrooted_must_root::UnrootedPass::new()));
reg.register_attribute("allow_unrooted_interior".to_string(), Whitelisted);
+ reg.register_attribute("allow_unrooted_in_rc".to_string(), Whitelisted);
reg.register_attribute("must_root".to_string(), Whitelisted);
}