diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-12-06 17:56:31 -1000 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-12-22 00:45:18 +0100 |
commit | 2cc1b84f344e946aeab039ddfb348308885f8e7f (patch) | |
tree | acce2d6a751cab34b519b9103c3c7cab407c47d8 /components | |
parent | fd5733fc1e5cda952e8d68783d4053fe4ae66eb1 (diff) | |
download | servo-2cc1b84f344e946aeab039ddfb348308885f8e7f.tar.gz servo-2cc1b84f344e946aeab039ddfb348308885f8e7f.zip |
Update Rust to 1.15.0-nightly (71c06a56a 2016-12-18)
Diffstat (limited to 'components')
-rw-r--r-- | components/gfx/Cargo.toml | 2 | ||||
-rw-r--r-- | components/plugins/lints/inheritance_integrity.rs | 2 | ||||
-rw-r--r-- | components/plugins/lints/privatize.rs | 2 | ||||
-rw-r--r-- | components/plugins/lints/transmute_type.rs | 2 | ||||
-rw-r--r-- | components/plugins/lints/unrooted_must_root.rs | 28 | ||||
-rw-r--r-- | components/script/dom/treewalker.rs | 3 |
6 files changed, 22 insertions, 17 deletions
diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml index 81bcb81268e..79b6f86916f 100644 --- a/components/gfx/Cargo.toml +++ b/components/gfx/Cargo.toml @@ -54,7 +54,7 @@ core-graphics = "0.4" core-text = "2.0" [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] -freetype = {git = "https://github.com/servo/rust-freetype"} +freetype = "0.1.3" servo-fontconfig = "0.2.1" [target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))'.dependencies] diff --git a/components/plugins/lints/inheritance_integrity.rs b/components/plugins/lints/inheritance_integrity.rs index a47b6313db0..0c70a949c15 100644 --- a/components/plugins/lints/inheritance_integrity.rs +++ b/components/plugins/lints/inheritance_integrity.rs @@ -22,7 +22,7 @@ impl LintPass for InheritancePass { } } -impl LateLintPass for InheritancePass { +impl<'a, 'tcx> LateLintPass<'a, 'tcx> for InheritancePass { fn check_struct_def(&mut self, cx: &LateContext, def: &hir::VariantData, _n: ast::Name, _gen: &hir::Generics, id: ast::NodeId) { // Lints are run post expansion, so it's fine to use diff --git a/components/plugins/lints/privatize.rs b/components/plugins/lints/privatize.rs index f3f56a0cdc4..0eec1ad1596 100644 --- a/components/plugins/lints/privatize.rs +++ b/components/plugins/lints/privatize.rs @@ -21,7 +21,7 @@ impl LintPass for PrivatizePass { } } -impl LateLintPass for PrivatizePass { +impl<'a, 'tcx> LateLintPass<'a, 'tcx> for PrivatizePass { fn check_struct_def(&mut self, cx: &LateContext, def: &hir::VariantData, diff --git a/components/plugins/lints/transmute_type.rs b/components/plugins/lints/transmute_type.rs index 6cc1b3818a6..1488aaa9a74 100644 --- a/components/plugins/lints/transmute_type.rs +++ b/components/plugins/lints/transmute_type.rs @@ -20,7 +20,7 @@ impl LintPass for TransmutePass { } } -impl LateLintPass for TransmutePass { +impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TransmutePass { fn check_expr(&mut self, cx: &LateContext, ex: &hir::Expr) { match ex.node { hir::ExprCall(ref expr, ref args) => { diff --git a/components/plugins/lints/unrooted_must_root.rs b/components/plugins/lints/unrooted_must_root.rs index a2ce68c522b..328b143593b 100644 --- a/components/plugins/lints/unrooted_must_root.rs +++ b/components/plugins/lints/unrooted_must_root.rs @@ -76,7 +76,7 @@ impl LintPass for UnrootedPass { } } -impl LateLintPass for UnrootedPass { +impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass { /// All structs containing #[must_root] types must be #[must_root] themselves fn check_struct_def(&mut self, cx: &LateContext, @@ -119,8 +119,13 @@ impl LateLintPass for UnrootedPass { } } /// Function arguments that are #[must_root] types are not allowed - fn check_fn(&mut self, cx: &LateContext, kind: visit::FnKind, decl: &hir::FnDecl, - body: &hir::Expr, span: codemap::Span, id: ast::NodeId) { + fn check_fn(&mut self, + cx: &LateContext<'a, 'tcx>, + kind: visit::FnKind, + decl: &'tcx hir::FnDecl, + body: &'tcx hir::Expr, + span: codemap::Span, + id: ast::NodeId) { let in_new_function = match kind { visit::FnKind::ItemFn(n, _, _, _, _, _, _) | visit::FnKind::Method(n, _, _, _) => { @@ -159,8 +164,8 @@ struct FnDefVisitor<'a, 'b: 'a, 'tcx: 'a+'b> { in_new_function: bool, } -impl<'a, 'b: 'a, 'tcx: 'a+'b> visit::Visitor<'a> for FnDefVisitor<'a, 'b, 'tcx> { - fn visit_expr(&mut self, expr: &'a hir::Expr) { +impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> { + fn visit_expr(&mut self, expr: &'tcx hir::Expr) { let cx = self.cx; fn require_rooted(cx: &LateContext, in_new_function: bool, subexpr: &hir::Expr) { @@ -194,7 +199,7 @@ impl<'a, 'b: 'a, 'tcx: 'a+'b> visit::Visitor<'a> for FnDefVisitor<'a, 'b, 'tcx> visit::walk_expr(self, expr); } - fn visit_pat(&mut self, pat: &'a hir::Pat) { + fn visit_pat(&mut self, pat: &'tcx hir::Pat) { let cx = self.cx; if let hir::PatKind::Binding(hir::BindingMode::BindByValue(_), _, _, _) = pat.node { @@ -209,13 +214,16 @@ impl<'a, 'b: 'a, 'tcx: 'a+'b> visit::Visitor<'a> for FnDefVisitor<'a, 'b, 'tcx> visit::walk_pat(self, pat); } - fn visit_fn(&mut self, kind: visit::FnKind<'a>, decl: &'a hir::FnDecl, - body: &'a hir::Expr, span: codemap::Span, id: ast::NodeId) { + fn visit_fn(&mut self, kind: visit::FnKind<'tcx>, decl: &'tcx hir::FnDecl, + body: hir::ExprId, span: codemap::Span, id: ast::NodeId) { if let visit::FnKind::Closure(_) = kind { visit::walk_fn(self, kind, decl, body, span, id); } } - fn visit_foreign_item(&mut self, _: &'a hir::ForeignItem) {} - fn visit_ty(&mut self, _: &'a hir::Ty) { } + fn visit_foreign_item(&mut self, _: &'tcx hir::ForeignItem) {} + fn visit_ty(&mut self, _: &'tcx hir::Ty) { } + fn nested_visit_map<'this>(&'this mut self) -> hir::intravisit::NestedVisitorMap<'this, 'tcx> { + hir::intravisit::NestedVisitorMap::OnlyBodies(&self.cx.tcx.map) + } } diff --git a/components/script/dom/treewalker.rs b/components/script/dom/treewalker.rs index 194cebf98cd..2a3367b3393 100644 --- a/components/script/dom/treewalker.rs +++ b/components/script/dom/treewalker.rs @@ -251,9 +251,6 @@ impl TreeWalkerMethods for TreeWalker { } } -type NodeAdvancer<'a> = Fn(&Node) -> Option<Root<Node>> + 'a; - - impl TreeWalker { // https://dom.spec.whatwg.org/#concept-traverse-children fn traverse_children<F, G>(&self, |