aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2022-03-26 21:36:59 -0400
committerJosh Matthews <josh@joshmatthews.net>2022-03-26 21:37:37 -0400
commit0179edb7070fef997a9a2d29fc04ecdb283efa64 (patch)
tree7045de14275b1d2beb1d03cefdc0902128a0a50b /components/script_plugins
parent4272a4d6f1c1d48072b0a0a9749a2fa9816e4339 (diff)
downloadservo-0179edb7070fef997a9a2d29fc04ecdb283efa64.tar.gz
servo-0179edb7070fef997a9a2d29fc04ecdb283efa64.zip
Update nightly Rust.
Diffstat (limited to 'components/script_plugins')
-rw-r--r--components/script_plugins/lib.rs30
1 files changed, 15 insertions, 15 deletions
diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs
index ba8475212f8..7de352281d7 100644
--- a/components/script_plugins/lib.rs
+++ b/components/script_plugins/lib.rs
@@ -111,16 +111,16 @@ fn is_unrooted_ty<'tcx>(
let recur_into_subtree = match t.kind() {
ty::Adt(did, substs) => {
let has_attr = |did, name| has_lint_attr(sym, &cx.tcx.get_attrs(did), name);
- if has_attr(did.did, sym.must_root) {
+ if has_attr(did.did(), sym.must_root) {
ret = true;
false
- } else if has_attr(did.did, sym.allow_unrooted_interior) {
+ } else if has_attr(did.did(), sym.allow_unrooted_interior) {
false
- } else if match_def_path(cx, did.did, &[sym.alloc, sym.rc, sym.Rc]) {
+ } else if match_def_path(cx, did.did(), &[sym.alloc, sym.rc, sym.Rc]) {
// Rc<Promise> is okay
let inner = substs.type_at(0);
if let ty::Adt(did, _) = inner.kind() {
- if has_attr(did.did, sym.allow_unrooted_in_rc) {
+ if has_attr(did.did(), sym.allow_unrooted_in_rc) {
false
} else {
true
@@ -128,24 +128,24 @@ fn is_unrooted_ty<'tcx>(
} else {
true
}
- } else if match_def_path(cx, did.did, &[sym::core, sym.cell, sym.Ref]) ||
- match_def_path(cx, did.did, &[sym::core, sym.cell, sym.RefMut]) ||
- match_def_path(cx, did.did, &[sym::core, sym::slice, sym::iter, sym.Iter]) ||
+ } else if match_def_path(cx, did.did(), &[sym::core, sym.cell, sym.Ref]) ||
+ match_def_path(cx, did.did(), &[sym::core, sym.cell, sym.RefMut]) ||
+ match_def_path(cx, did.did(), &[sym::core, sym::slice, sym::iter, sym.Iter]) ||
match_def_path(
cx,
- did.did,
+ did.did(),
&[sym::core, sym::slice, sym::iter, sym.IterMut],
) ||
- match_def_path(cx, did.did, &[sym.accountable_refcell, sym.Ref]) ||
- match_def_path(cx, did.did, &[sym.accountable_refcell, sym.RefMut]) ||
+ match_def_path(cx, did.did(), &[sym.accountable_refcell, sym.Ref]) ||
+ match_def_path(cx, did.did(), &[sym.accountable_refcell, sym.RefMut]) ||
match_def_path(
cx,
- did.did,
+ did.did(),
&[sym::std, sym.collections, sym.hash, sym.map, sym.Entry],
) ||
match_def_path(
cx,
- did.did,
+ did.did(),
&[
sym::std,
sym.collections,
@@ -156,7 +156,7 @@ fn is_unrooted_ty<'tcx>(
) ||
match_def_path(
cx,
- did.did,
+ did.did(),
&[
sym::std,
sym.collections,
@@ -167,12 +167,12 @@ fn is_unrooted_ty<'tcx>(
) ||
match_def_path(
cx,
- did.did,
+ did.did(),
&[sym::std, sym.collections, sym.hash, sym.map, sym.Iter],
) ||
match_def_path(
cx,
- did.did,
+ did.did(),
&[sym::std, sym.collections, sym.hash, sym.set, sym.Iter],
)
{