Skip to content

Commit

Permalink
fix src/test fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Jan 2, 2020
1 parent bebdb44 commit 6e4ea14
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#![feature(rustc_private)]

extern crate syntax;
extern crate rustc;
extern crate rustc_codegen_utils;
#[macro_use]
extern crate rustc_data_structures;
extern crate rustc_target;
extern crate rustc_driver;
extern crate rustc_span;

use std::any::Any;
use std::sync::Arc;
use std::path::Path;
use syntax::symbol::Symbol;
use rustc_span::symbol::Symbol;
use rustc::session::Session;
use rustc::session::config::OutputFilenames;
use rustc::ty::TyCtxt;
Expand Down
4 changes: 2 additions & 2 deletions src/test/run-make-fulldeps/issue-19371/foo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
extern crate rustc;
extern crate rustc_interface;
extern crate rustc_driver;
extern crate syntax;
extern crate rustc_span;

use rustc::session::DiagnosticOutput;
use rustc::session::config::{Input, Options,
OutputType, OutputTypes};
use rustc_interface::interface;
use syntax::source_map::FileName;
use rustc_span::source_map::FileName;

use std::path::PathBuf;

Expand Down
5 changes: 3 additions & 2 deletions src/test/ui-fulldeps/auxiliary/issue-40001-plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
#[macro_use] extern crate rustc;
#[macro_use] extern crate rustc_session;
extern crate rustc_driver;
extern crate rustc_span;
extern crate syntax;

use rustc_driver::plugin::Registry;
use rustc::hir::{self, intravisit, Node};
use rustc::lint::{LateContext, LintPass, LintArray, LateLintPass, LintContext};
use rustc_driver::plugin::Registry;
use rustc_span::source_map;
use syntax::print::pprust;
use syntax::source_map;

#[plugin_registrar]
pub fn plugin_registrar(reg: &mut Registry) {
Expand Down
5 changes: 3 additions & 2 deletions src/test/ui-fulldeps/auxiliary/lint-for-crate-rpass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
#[macro_use] extern crate rustc;
#[macro_use] extern crate rustc_session;
extern crate rustc_driver;
extern crate rustc_span;
extern crate syntax;

use rustc::hir;
use rustc::lint::{LateContext, LintContext, LintPass, LateLintPass};
use rustc_driver::plugin::Registry;
use rustc::hir;
use rustc_span::symbol::Symbol;
use syntax::attr;
use syntax::symbol::Symbol;

macro_rules! fake_lint_pass {
($struct:ident, $($attr:expr),*) => {
Expand Down
5 changes: 3 additions & 2 deletions src/test/ui-fulldeps/auxiliary/lint-for-crate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
#[macro_use] extern crate rustc;
#[macro_use] extern crate rustc_session;
extern crate rustc_driver;
extern crate rustc_span;
extern crate syntax;

use rustc::hir;
use rustc::lint::{LateContext, LintContext, LintPass, LateLintPass, LintArray};
use rustc_driver::plugin::Registry;
use rustc::hir;
use rustc_span::symbol::Symbol;
use syntax::attr;
use syntax::symbol::Symbol;

declare_lint! {
CRATE_NOT_OKAY,
Expand Down
3 changes: 2 additions & 1 deletion src/test/ui-fulldeps/mod_dir_path_canonicalized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

extern crate syntax;
extern crate rustc_parse;
extern crate rustc_span;

use rustc_parse::new_parser_from_file;
use rustc_span::source_map::FilePathMapping;
use std::path::Path;
use syntax::sess::ParseSess;
use syntax::source_map::FilePathMapping;

#[path = "mod_dir_simple/test.rs"]
mod gravy;
Expand Down
5 changes: 3 additions & 2 deletions src/test/ui-fulldeps/pprust-expr-roundtrip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
extern crate rustc_data_structures;
extern crate syntax;
extern crate rustc_parse;
extern crate rustc_span;

use rustc_data_structures::thin_vec::ThinVec;
use rustc_parse::new_parser_from_source_str;
use rustc_span::source_map::{Spanned, DUMMY_SP, FileName};
use rustc_span::source_map::FilePathMapping;
use syntax::ast::*;
use syntax::sess::ParseSess;
use syntax::source_map::{Spanned, DUMMY_SP, FileName};
use syntax::source_map::FilePathMapping;
use syntax::mut_visit::{self, MutVisitor, visit_clobber};
use syntax::print::pprust;
use syntax::ptr::P;
Expand Down

0 comments on commit 6e4ea14

Please sign in to comment.