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

@ -35,6 +35,7 @@ use std::ptr;
use std::rc::Rc;
#[dom_struct]
#[allow_unrooted_in_rc]
pub struct Promise {
reflector: Reflector,
/// Since Promise values are natively reference counted without the knowledge of