diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2020-03-31 15:52:07 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2020-04-08 14:42:45 +0200 |
commit | 651b087155c09301f6762b7b58b14be8f6334ccf (patch) | |
tree | 71d3efe86bd34243de38d5dc98ae7643c0a5936a /components/script_plugins/lib.rs | |
parent | 7b5ec99d25be61a7a3ec2f630c31a9f02c7b849b (diff) | |
download | servo-651b087155c09301f6762b7b58b14be8f6334ccf.tar.gz servo-651b087155c09301f6762b7b58b14be8f6334ccf.zip |
Upgrade to rustc 1.44.0-nightly (211365947 2020-03-30)
Diffstat (limited to 'components/script_plugins/lib.rs')
-rw-r--r-- | components/script_plugins/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs index c2cd3c9062a..0db4b5a5527 100644 --- a/components/script_plugins/lib.rs +++ b/components/script_plugins/lib.rs @@ -19,21 +19,21 @@ #![feature(rustc_private)] #![cfg(feature = "unrooted_must_root_lint")] -extern crate rustc; extern crate rustc_ast; extern crate rustc_driver; extern crate rustc_hir; extern crate rustc_lint; +extern crate rustc_middle; extern crate rustc_session; extern crate rustc_span; -use rustc::ty; use rustc_ast::ast::{AttrKind, Attribute}; 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_middle::ty; use rustc_session::declare_lint; use rustc_span::source_map; use rustc_span::source_map::{ExpnKind, MacroKind, Span}; @@ -298,7 +298,7 @@ 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>; + type Map = rustc_middle::hir::map::Map<'tcx>; fn visit_expr(&mut self, expr: &'tcx hir::Expr) { let cx = self.cx; |