aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2020-07-06 08:42:03 -0400
committerJosh Matthews <josh@joshmatthews.net>2020-07-06 10:06:06 -0400
commit6843d51a265995c97a5b40462f08a1f12923a069 (patch)
tree7b3cd1fcda801e53979a22ab19cebed370d23023 /components
parent745eb88e32bbae4a85b605706de25a1639ca8902 (diff)
downloadservo-6843d51a265995c97a5b40462f08a1f12923a069.tar.gz
servo-6843d51a265995c97a5b40462f08a1f12923a069.zip
Update to 7/6 rustc.
Diffstat (limited to 'components')
-rw-r--r--components/compositing/lib.rs1
-rw-r--r--components/script_plugins/lib.rs12
2 files changed, 6 insertions, 7 deletions
diff --git a/components/compositing/lib.rs b/components/compositing/lib.rs
index da11e95fd55..cc4f86922ff 100644
--- a/components/compositing/lib.rs
+++ b/components/compositing/lib.rs
@@ -3,7 +3,6 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#![deny(unsafe_code)]
-#![feature(track_caller)]
#[macro_use]
extern crate log;
diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs
index e01f1d38201..2d38ed27510 100644
--- a/components/script_plugins/lib.rs
+++ b/components/script_plugins/lib.rs
@@ -202,10 +202,10 @@ impl LintPass for UnrootedPass {
}
}
-impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
+impl<'tcx> LateLintPass<'tcx> for UnrootedPass {
/// All structs containing #[unrooted_must_root_lint::must_root] types
/// must be #[unrooted_must_root_lint::must_root] themselves
- fn check_item(&mut self, cx: &LateContext<'a, 'tcx>, item: &'tcx hir::Item) {
+ fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item) {
if has_lint_attr(&self.symbols, &item.attrs, self.symbols.must_root) {
return;
}
@@ -256,7 +256,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
/// Function arguments that are #[unrooted_must_root_lint::must_root] types are not allowed
fn check_fn(
&mut self,
- cx: &LateContext<'a, 'tcx>,
+ cx: &LateContext<'tcx>,
kind: visit::FnKind<'tcx>,
decl: &'tcx hir::FnDecl,
body: &'tcx hir::Body,
@@ -302,13 +302,13 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
}
}
-struct FnDefVisitor<'a, 'b: 'a, 'tcx: 'a + 'b> {
+struct FnDefVisitor<'a, 'tcx: 'a> {
symbols: &'a Symbols,
- cx: &'a LateContext<'b, 'tcx>,
+ cx: &'a LateContext<'tcx>,
in_new_function: bool,
}
-impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> {
+impl<'a, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'tcx> {
type Map = rustc_middle::hir::map::Map<'tcx>;
fn visit_expr(&mut self, expr: &'tcx hir::Expr) {