Skip to content

Commit 0156368

Browse files
committed
fix ui-fulldeps fallout
1 parent ebfd867 commit 0156368

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

src/test/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ extern crate rustc;
44
extern crate rustc_codegen_utils;
55
#[macro_use]
66
extern crate rustc_data_structures;
7+
extern crate rustc_hir;
78
extern crate rustc_target;
89
extern crate rustc_driver;
910
extern crate rustc_span;
@@ -65,7 +66,7 @@ impl CodegenBackend for TheBackend {
6566
_metadata: EncodedMetadata,
6667
_need_metadata_module: bool,
6768
) -> Box<dyn Any> {
68-
use rustc::hir::def_id::LOCAL_CRATE;
69+
use rustc_hir::def_id::LOCAL_CRATE;
6970

7071
Box::new(tcx.crate_name(LOCAL_CRATE) as Symbol)
7172
}

src/test/ui-fulldeps/auxiliary/issue-40001-plugin.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
#[macro_use] extern crate rustc;
55
#[macro_use] extern crate rustc_session;
66
extern crate rustc_driver;
7+
extern crate rustc_hir;
78
extern crate rustc_span;
89
extern crate syntax;
910

10-
use rustc::hir::{self, intravisit, Node};
11+
use rustc::hir::intravisit;
12+
use rustc_hir as hir;
13+
use rustc_hir::Node;
1114
use rustc::lint::{LateContext, LintPass, LintArray, LateLintPass, LintContext};
1215
use rustc_driver::plugin::Registry;
1316
use rustc_span::source_map;

src/test/ui-fulldeps/auxiliary/lint-for-crate-rpass.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#[macro_use] extern crate rustc;
66
#[macro_use] extern crate rustc_session;
77
extern crate rustc_driver;
8+
extern crate rustc_hir;
89
extern crate rustc_span;
910
extern crate syntax;
1011

11-
use rustc::hir;
1212
use rustc::lint::{LateContext, LintContext, LintPass, LateLintPass};
1313
use rustc_driver::plugin::Registry;
1414
use rustc_span::symbol::Symbol;
@@ -25,7 +25,7 @@ macro_rules! fake_lint_pass {
2525
}
2626

2727
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for $struct {
28-
fn check_crate(&mut self, cx: &LateContext, krate: &hir::Crate) {
28+
fn check_crate(&mut self, cx: &LateContext, krate: &rustc_hir::Crate) {
2929
$(
3030
if !attr::contains_name(&krate.attrs, $attr) {
3131
cx.span_lint(CRATE_NOT_OKAY, krate.span,

src/test/ui-fulldeps/auxiliary/lint-for-crate.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
#[macro_use] extern crate rustc;
77
#[macro_use] extern crate rustc_session;
88
extern crate rustc_driver;
9+
extern crate rustc_hir;
910
extern crate rustc_span;
1011
extern crate syntax;
1112

12-
use rustc::hir;
1313
use rustc::lint::{LateContext, LintContext, LintPass, LateLintPass, LintArray};
1414
use rustc_driver::plugin::Registry;
1515
use rustc_span::symbol::Symbol;
@@ -24,7 +24,7 @@ declare_lint! {
2424
declare_lint_pass!(Pass => [CRATE_NOT_OKAY]);
2525

2626
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
27-
fn check_crate(&mut self, cx: &LateContext, krate: &hir::Crate) {
27+
fn check_crate(&mut self, cx: &LateContext, krate: &rustc_hir::Crate) {
2828
if !attr::contains_name(&krate.attrs, Symbol::intern("crate_okay")) {
2929
cx.span_lint(CRATE_NOT_OKAY, krate.span,
3030
"crate is not marked with #![crate_okay]");

src/test/ui-fulldeps/auxiliary/lint-group-plugin-test.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#[macro_use] extern crate rustc;
88
#[macro_use] extern crate rustc_session;
99
extern crate rustc_driver;
10+
extern crate rustc_hir;
1011

11-
use rustc::hir;
1212
use rustc::lint::{LateContext, LintContext, LintPass, LateLintPass, LintArray, LintId};
1313
use rustc_driver::plugin::Registry;
1414

@@ -19,7 +19,7 @@ declare_lint!(PLEASE_LINT, Warn, "Warn about items named 'pleaselintme'");
1919
declare_lint_pass!(Pass => [TEST_LINT, PLEASE_LINT]);
2020

2121
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
22-
fn check_item(&mut self, cx: &LateContext, it: &hir::Item) {
22+
fn check_item(&mut self, cx: &LateContext, it: &rustc_hir::Item) {
2323
match &*it.ident.as_str() {
2424
"lintme" => cx.span_lint(TEST_LINT, it.span, "item is named 'lintme'"),
2525
"pleaselintme" => cx.span_lint(PLEASE_LINT, it.span, "item is named 'pleaselintme'"),

0 commit comments

Comments
 (0)