Exempt Rc<Promise> from unrooted_must_root

fixes #22504
This commit is contained in:
Manish Goregaokar 2019-01-03 16:17:06 -08:00
parent 7a64588efa
commit e28e73c81f
3 changed files with 15 additions and 1 deletions

View file

@ -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);
}