Skip to content

Commit 2293342

Browse files
author
bors-servo
authored
Auto merge of #25536 - servo:rustup, r=jdm
Upgrade to rustc 1.42.0-nightly (3291ae339 2020-01-15) This was unblocked by rust-lang/rust#67603 fixing rust-lang/rust#67601.
2 parents a23e2db + 850f52c commit 2293342

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

components/config_plugins/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
#![feature(proc_macro_diagnostic)]
66

7-
extern crate proc_macro;
8-
97
use itertools::Itertools;
108
use proc_macro2::{Span, TokenStream};
119
use quote::*;

components/deny_public_fields/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
44

5-
extern crate proc_macro;
6-
75
use std::str::FromStr;
86
use synstructure::{self, decl_derive};
97

components/domobject_derive/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#![recursion_limit = "128"]
66

7-
extern crate proc_macro;
87
#[macro_use]
98
extern crate quote;
109
#[macro_use]

components/layout/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
44

55
#![deny(unsafe_code)]
6-
#![feature(matches_macro)]
76

87
#[macro_use]
98
extern crate bitflags;

components/layout_2020/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#![deny(unsafe_code)]
66
#![feature(exact_size_is_empty)]
7-
#![feature(matches_macro)]
87

98
pub mod context;
109
pub mod data;

components/script_plugins/lib.rs

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,24 @@
2323
extern crate matches;
2424
extern crate rustc;
2525
extern crate rustc_driver;
26+
extern crate rustc_hir;
27+
extern crate rustc_lint;
2628
extern crate rustc_session;
29+
extern crate rustc_span;
2730
extern crate syntax;
2831

29-
use rustc::hir::def_id::DefId;
30-
use rustc::hir::intravisit as visit;
31-
use rustc::hir::{self, ExprKind, HirId};
32-
use rustc::lint::{LateContext, LateLintPass, LintContext, LintPass};
3332
use rustc::ty;
3433
use rustc_driver::plugin::Registry;
34+
use rustc_hir::def_id::DefId;
35+
use rustc_hir::intravisit as visit;
36+
use rustc_hir::{self as hir, ExprKind, HirId};
37+
use rustc_lint::{LateContext, LateLintPass, LintContext, LintPass};
3538
use rustc_session::declare_lint;
39+
use rustc_span::source_map;
40+
use rustc_span::source_map::{ExpnKind, MacroKind, Span};
41+
use rustc_span::symbol::sym;
42+
use rustc_span::symbol::Symbol;
3643
use syntax::ast::{AttrKind, Attribute};
37-
use syntax::source_map;
38-
use syntax::source_map::{ExpnKind, MacroKind, Span};
39-
use syntax::symbol::sym;
40-
use syntax::symbol::Symbol;
4144

4245
#[allow(deprecated)]
4346
#[plugin_registrar]
@@ -290,6 +293,8 @@ struct FnDefVisitor<'a, 'b: 'a, 'tcx: 'a + 'b> {
290293
}
291294

292295
impl<'a, 'b, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'b, 'tcx> {
296+
type Map = rustc::hir::map::Map<'tcx>;
297+
293298
fn visit_expr(&mut self, expr: &'tcx hir::Expr) {
294299
let cx = self.cx;
295300

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

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

356-
fn nested_visit_map<'this>(&'this mut self) -> hir::intravisit::NestedVisitorMap<'this, 'tcx> {
361+
fn nested_visit_map<'this>(
362+
&'this mut self,
363+
) -> hir::intravisit::NestedVisitorMap<'this, Self::Map> {
357364
hir::intravisit::NestedVisitorMap::OnlyBodies(&self.cx.tcx.hir())
358365
}
359366
}

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2019-12-23
1+
nightly-2020-01-16

0 commit comments

Comments
 (0)