diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-07-17 20:23:32 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-07-18 11:25:30 +0200 |
commit | 3509bcb5319fca02dc9c40ab5feeee9014534263 (patch) | |
tree | e250c202dd3f8108f2065a91d51f624af4e7a006 /components/script_plugins | |
parent | e397ca06d84ee2b0c9167a466c199d72e23abc48 (diff) | |
download | servo-3509bcb5319fca02dc9c40ab5feeee9014534263.tar.gz servo-3509bcb5319fca02dc9c40ab5feeee9014534263.zip |
Upgrade to rustc 1.29.0-nightly (1ecf6929d 2018-07-16)
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 29e74940536..86825808f2c 100644 --- a/components/script_plugins/unrooted_must_root.rs +++ b/components/script_plugins/unrooted_must_root.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use rustc::hir; +use rustc::hir::{self, ExprKind}; use rustc::hir::intravisit as visit; use rustc::hir::map as ast_map; use rustc::lint::{LateContext, LintPass, LintArray, LateLintPass, LintContext}; @@ -185,7 +185,7 @@ impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> { match expr.node { // Trait casts from #[must_root] types are not allowed - hir::ExprCast(ref subexpr, _) => require_rooted(cx, self.in_new_function, &*subexpr), + ExprKind::Cast(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. |