aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins/lib.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2021-09-07 01:44:56 -0400
committerJosh Matthews <josh@joshmatthews.net>2021-11-01 08:46:18 -0400
commit01681e79c47ebfc45eaca18b79846e4fbe16a959 (patch)
tree0a26cddd57635e960e97da9ab7c7b57f23e9c423 /components/script_plugins/lib.rs
parent74f1eb199e67e82ff713f77f7803f02a25966628 (diff)
downloadservo-01681e79c47ebfc45eaca18b79846e4fbe16a959.tar.gz
servo-01681e79c47ebfc45eaca18b79846e4fbe16a959.zip
Update nightly rustc.
Diffstat (limited to 'components/script_plugins/lib.rs')
-rw-r--r--components/script_plugins/lib.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs
index 0edab34dc84..ed4afc96f8f 100644
--- a/components/script_plugins/lib.rs
+++ b/components/script_plugins/lib.rs
@@ -92,9 +92,14 @@ fn has_lint_attr(sym: &Symbols, attrs: &[Attribute], name: Symbol) -> bool {
}
/// Checks if a type is unrooted or contains any owned unrooted types
-fn is_unrooted_ty(sym: &Symbols, cx: &LateContext, ty: &ty::TyS, in_new_function: bool) -> bool {
+fn is_unrooted_ty<'tcx>(
+ sym: &'_ Symbols,
+ cx: &LateContext<'tcx>,
+ ty: &'tcx ty::TyS<'tcx>,
+ in_new_function: bool,
+) -> bool {
let mut ret = false;
- let mut walker = ty.walk();
+ let mut walker = ty.walk(cx.tcx);
while let Some(generic_arg) = walker.next() {
let t = match generic_arg.unpack() {
rustc_middle::ty::subst::GenericArgKind::Type(t) => t,