diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2019-01-03 16:17:06 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2019-01-04 09:34:04 -0800 |
commit | e28e73c81fcbed570955f2175d56ee794de6882a (patch) | |
tree | 9574591ce539ea4d458a31d7e37325b8646c3294 /components/script_plugins/lib.rs | |
parent | 7a64588efaf45f307677b4a025b241fe3fc3b380 (diff) | |
download | servo-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.rs | 1 |
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); } |