diff options
author | Josh Matthews <josh@joshmatthews.net> | 2022-03-06 18:04:42 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2022-03-06 18:11:57 -0500 |
commit | af5a17f94badedd9778b3aa871e4e3d55921e59d (patch) | |
tree | d68a74c531262089d0a77bde4240de92d67061c2 /components/script_plugins/lib.rs | |
parent | ecb4f4225acf1742671927a4132ca58de69483ff (diff) | |
download | servo-af5a17f94badedd9778b3aa871e4e3d55921e59d.tar.gz servo-af5a17f94badedd9778b3aa871e4e3d55921e59d.zip |
Update rustc to 3/6 nightly.
Diffstat (limited to 'components/script_plugins/lib.rs')
-rw-r--r-- | components/script_plugins/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs index b544b95ca1a..ba8475212f8 100644 --- a/components/script_plugins/lib.rs +++ b/components/script_plugins/lib.rs @@ -95,7 +95,7 @@ fn has_lint_attr(sym: &Symbols, attrs: &[Attribute], name: Symbol) -> bool { fn is_unrooted_ty<'tcx>( sym: &'_ Symbols, cx: &LateContext<'tcx>, - ty: &'tcx ty::TyS<'tcx>, + ty: ty::Ty<'tcx>, in_new_function: bool, ) -> bool { let mut ret = false; @@ -279,7 +279,7 @@ impl<'tcx> LateLintPass<'tcx> for UnrootedPass { let sig = cx.tcx.type_of(def_id).fn_sig(cx.tcx); for (arg, ty) in decl.inputs.iter().zip(sig.inputs().skip_binder().iter()) { - if is_unrooted_ty(&self.symbols, cx, ty, false) { + if is_unrooted_ty(&self.symbols, cx, *ty, false) { cx.lint(UNROOTED_MUST_ROOT, |lint| { lint.build("Type must be rooted").set_span(arg.span).emit() }) |