diff options
Diffstat (limited to 'components/script_plugins')
-rw-r--r-- | components/script_plugins/unrooted_must_root.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_plugins/unrooted_must_root.rs b/components/script_plugins/unrooted_must_root.rs index b0b409862c5..5b5647794dc 100644 --- a/components/script_plugins/unrooted_must_root.rs +++ b/components/script_plugins/unrooted_must_root.rs @@ -186,11 +186,11 @@ impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> { hir::ExprCast(ref subexpr, _) => require_rooted(cx, self.in_new_function, &*subexpr), // This catches assignments... the main point of this would be to catch mutable // references to `JS<T>`. - // FIXME: Enable this? Triggers on certain kinds of uses of DOMRefCell. + // FIXME: Enable this? Triggers on certain kinds of uses of DomRefCell. // hir::ExprAssign(_, ref rhs) => require_rooted(cx, self.in_new_function, &*rhs), // This catches calls; basically, this enforces the constraint that only constructors // can call other constructors. - // FIXME: Enable this? Currently triggers with constructs involving DOMRefCell, and + // FIXME: Enable this? Currently triggers with constructs involving DomRefCell, and // constructs like Vec<JS<T>> and RootedVec<JS<T>>. // hir::ExprCall(..) if !self.in_new_function => { // require_rooted(cx, self.in_new_function, expr); |