Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "Update Rust to 1.15.0-nightly (8f02c429a 2016-12-15)."
This reverts commit 5618e79.
  • Loading branch information
larsbergstrom committed Dec 19, 2016
1 parent 077a54d commit cba3881
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 29 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/plugins/lints/inheritance_integrity.rs
Expand Up @@ -22,7 +22,7 @@ impl LintPass for InheritancePass {
}
}

impl<'a, 'tcx> LateLintPass<'a, 'tcx> for InheritancePass {
impl LateLintPass 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
Expand Down
2 changes: 1 addition & 1 deletion components/plugins/lints/privatize.rs
Expand Up @@ -21,7 +21,7 @@ impl LintPass for PrivatizePass {
}
}

impl<'a, 'tcx> LateLintPass<'a, 'tcx> for PrivatizePass {
impl LateLintPass for PrivatizePass {
fn check_struct_def(&mut self,
cx: &LateContext,
def: &hir::VariantData,
Expand Down
2 changes: 1 addition & 1 deletion components/plugins/lints/transmute_type.rs
Expand Up @@ -20,7 +20,7 @@ impl LintPass for TransmutePass {
}
}

impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TransmutePass {
impl LateLintPass for TransmutePass {
fn check_expr(&mut self, cx: &LateContext, ex: &hir::Expr) {
match ex.node {
hir::ExprCall(ref expr, ref args) => {
Expand Down
28 changes: 10 additions & 18 deletions components/plugins/lints/unrooted_must_root.rs
Expand Up @@ -76,7 +76,7 @@ impl LintPass for UnrootedPass {
}
}

impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
impl LateLintPass for UnrootedPass {
/// All structs containing #[must_root] types must be #[must_root] themselves
fn check_struct_def(&mut self,
cx: &LateContext,
Expand Down Expand Up @@ -119,13 +119,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
}
}
/// Function arguments that are #[must_root] types are not allowed
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) {
fn check_fn(&mut self, cx: &LateContext, kind: visit::FnKind, decl: &hir::FnDecl,
body: &hir::Expr, span: codemap::Span, id: ast::NodeId) {
let in_new_function = match kind {
visit::FnKind::ItemFn(n, _, _, _, _, _, _) |
visit::FnKind::Method(n, _, _, _) => {
Expand Down Expand Up @@ -164,8 +159,8 @@ struct FnDefVisitor<'a, 'b: 'a, 'tcx: 'a+'b> {
in_new_function: bool,
}

impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> {
fn visit_expr(&mut self, expr: &'tcx hir::Expr) {
impl<'a, 'b: 'a, 'tcx: 'a+'b> visit::Visitor<'a> for FnDefVisitor<'a, 'b, 'tcx> {
fn visit_expr(&mut self, expr: &'a hir::Expr) {
let cx = self.cx;

fn require_rooted(cx: &LateContext, in_new_function: bool, subexpr: &hir::Expr) {
Expand Down Expand Up @@ -199,7 +194,7 @@ impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> {
visit::walk_expr(self, expr);
}

fn visit_pat(&mut self, pat: &'tcx hir::Pat) {
fn visit_pat(&mut self, pat: &'a hir::Pat) {
let cx = self.cx;

if let hir::PatKind::Binding(hir::BindingMode::BindByValue(_), _, _, _) = pat.node {
Expand All @@ -214,16 +209,13 @@ impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> {
visit::walk_pat(self, pat);
}

fn visit_fn(&mut self, kind: visit::FnKind<'tcx>, decl: &'tcx hir::FnDecl,
body: hir::ExprId, span: codemap::Span, id: ast::NodeId) {
fn visit_fn(&mut self, kind: visit::FnKind<'a>, decl: &'a hir::FnDecl,
body: &'a hir::Expr, 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, _: &'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)
}
fn visit_foreign_item(&mut self, _: &'a hir::ForeignItem) {}
fn visit_ty(&mut self, _: &'a hir::Ty) { }
}
2 changes: 1 addition & 1 deletion ports/cef/lib.rs
Expand Up @@ -22,11 +22,11 @@ extern crate euclid;
extern crate gfx_traits;
extern crate gleam;
extern crate glutin_app;
extern crate rustc_unicode;
extern crate script_traits;
extern crate servo_config;
extern crate servo_geometry;
extern crate servo_url;
extern crate std_unicode;
extern crate style_traits;

extern crate net_traits;
Expand Down
2 changes: 1 addition & 1 deletion ports/cef/string_list.rs
Expand Up @@ -7,7 +7,7 @@ use std::slice;
use string::cef_string_utf16_set;
use types::{cef_string_list_t,cef_string_t};

use std_unicode::str::Utf16Encoder;
use rustc_unicode::str::Utf16Encoder;

//cef_string_list

Expand Down
2 changes: 1 addition & 1 deletion ports/cef/window.rs
Expand Up @@ -14,7 +14,7 @@ use eutil::Downcast;
use interfaces::CefApp;
use interfaces::CefBrowser;
use render_handler::CefRenderHandlerExtensions;
use std_unicode::str::Utf16Encoder;
use rustc_unicode::str::Utf16Encoder;
use types::{cef_cursor_handle_t, cef_cursor_type_t, cef_rect_t};
use wrappers::CefWrap;

Expand Down
2 changes: 1 addition & 1 deletion ports/cef/wrappers.rs
Expand Up @@ -8,7 +8,7 @@ use interfaces::{cef_dialog_handler_t, cef_focus_handler_t};
use interfaces::{cef_download_handler_t, cef_drag_handler_t, cef_context_menu_handler_t};
use interfaces::{cef_geolocation_handler_t, cef_jsdialog_handler_t, cef_keyboard_handler_t};
use interfaces::{cef_load_handler_t, cef_request_handler_t};
use std_unicode::str::Utf16Encoder;
use rustc_unicode::str::Utf16Encoder;
use types::{cef_base_t, cef_browser_settings_t, CefBrowserSettings, cef_color_model_t};
use types::{cef_context_menu_edit_state_flags_t};
use types::{cef_context_menu_media_state_flags_t};
Expand Down
2 changes: 1 addition & 1 deletion rust-nightly-date
@@ -1 +1 @@
2016-12-16
2016-11-29

0 comments on commit cba3881

Please sign in to comment.