Skip to content

Commit

Permalink
Upgrade to rustc 1.42.0-nightly (3291ae339 2020-01-15)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Jan 16, 2020
1 parent eb8fbdd commit 850f52c
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 0 additions & 2 deletions components/config_plugins/lib.rs
Expand Up @@ -4,8 +4,6 @@

#![feature(proc_macro_diagnostic)]

extern crate proc_macro;

use itertools::Itertools;
use proc_macro2::{Span, TokenStream};
use quote::*;
Expand Down
2 changes: 0 additions & 2 deletions components/deny_public_fields/lib.rs
Expand Up @@ -2,8 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

extern crate proc_macro;

use std::str::FromStr;
use synstructure::{self, decl_derive};

Expand Down
1 change: 0 additions & 1 deletion components/domobject_derive/lib.rs
Expand Up @@ -4,7 +4,6 @@

#![recursion_limit = "128"]

extern crate proc_macro;
#[macro_use]
extern crate quote;
#[macro_use]
Expand Down
1 change: 0 additions & 1 deletion components/layout/lib.rs
Expand Up @@ -3,7 +3,6 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

#![deny(unsafe_code)]
#![feature(matches_macro)]

#[macro_use]
extern crate bitflags;
Expand Down
1 change: 0 additions & 1 deletion components/layout_2020/lib.rs
Expand Up @@ -4,7 +4,6 @@

#![deny(unsafe_code)]
#![feature(exact_size_is_empty)]
#![feature(matches_macro)]

pub mod context;
pub mod data;
Expand Down
25 changes: 16 additions & 9 deletions components/script_plugins/lib.rs
Expand Up @@ -23,21 +23,24 @@
extern crate matches;
extern crate rustc;
extern crate rustc_driver;
extern crate rustc_hir;
extern crate rustc_lint;
extern crate rustc_session;
extern crate rustc_span;
extern crate syntax;

use rustc::hir::def_id::DefId;
use rustc::hir::intravisit as visit;
use rustc::hir::{self, ExprKind, HirId};
use rustc::lint::{LateContext, LateLintPass, LintContext, LintPass};
use rustc::ty;
use rustc_driver::plugin::Registry;
use rustc_hir::def_id::DefId;
use rustc_hir::intravisit as visit;
use rustc_hir::{self as hir, ExprKind, HirId};
use rustc_lint::{LateContext, LateLintPass, LintContext, LintPass};
use rustc_session::declare_lint;
use rustc_span::source_map;
use rustc_span::source_map::{ExpnKind, MacroKind, Span};
use rustc_span::symbol::sym;
use rustc_span::symbol::Symbol;
use syntax::ast::{AttrKind, Attribute};
use syntax::source_map;
use syntax::source_map::{ExpnKind, MacroKind, Span};
use syntax::symbol::sym;
use syntax::symbol::Symbol;

#[allow(deprecated)]
#[plugin_registrar]
Expand Down Expand Up @@ -290,6 +293,8 @@ struct FnDefVisitor<'a, 'b: 'a, 'tcx: 'a + 'b> {
}

impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> {
type Map = rustc::hir::map::Map<'tcx>;

fn visit_expr(&mut self, expr: &'tcx hir::Expr) {
let cx = self.cx;

Expand Down Expand Up @@ -353,7 +358,9 @@ impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> {

fn visit_ty(&mut self, _: &'tcx hir::Ty) {}

fn nested_visit_map<'this>(&'this mut self) -> hir::intravisit::NestedVisitorMap<'this, 'tcx> {
fn nested_visit_map<'this>(
&'this mut self,
) -> hir::intravisit::NestedVisitorMap<'this, Self::Map> {
hir::intravisit::NestedVisitorMap::OnlyBodies(&self.cx.tcx.hir())
}
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
@@ -1 +1 @@
nightly-2019-12-23
nightly-2020-01-16

0 comments on commit 850f52c

Please sign in to comment.