diff options
author | Josh Matthews <josh@joshmatthews.net> | 2018-05-18 11:44:47 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2018-05-18 11:44:47 -0500 |
commit | e7979380bafbb484ea63f7ad5f338b266a6bc0a5 (patch) | |
tree | 1fa4903319fcd9a16b037069283109d5787ffa9a /components/script_plugins/unrooted_must_root.rs | |
parent | a8bdd44ecea6dc6cd553f80e31d1705e3f34c559 (diff) | |
download | servo-e7979380bafbb484ea63f7ad5f338b266a6bc0a5.tar.gz servo-e7979380bafbb484ea63f7ad5f338b266a6bc0a5.zip |
Revert "Upgrade to rustc 1.27.0-nightly (8a37c75a3 2018-05-02)"
This reverts commit 46ad8110172cfc9d8d420e8eb41863f3d394e24d.
Diffstat (limited to 'components/script_plugins/unrooted_must_root.rs')
-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 6277b309c0c..502ae03de12 100644 --- a/components/script_plugins/unrooted_must_root.rs +++ b/components/script_plugins/unrooted_must_root.rs @@ -143,14 +143,14 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass { let def_id = cx.tcx.hir.local_def_id(id); 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()) { + for (arg, ty) in decl.inputs.iter().zip(sig.inputs().0.iter()) { if is_unrooted_ty(cx, ty, false) { cx.span_lint(UNROOTED_MUST_ROOT, arg.span, "Type must be rooted") } } if !in_new_function { - if is_unrooted_ty(cx, sig.output().skip_binder(), false) { + if is_unrooted_ty(cx, sig.output().0, false) { cx.span_lint(UNROOTED_MUST_ROOT, decl.output.span(), "Type must be rooted") } } |