Skip to content

Commit

Permalink
Tests: Import rustc_plugin from its new location
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Aug 24, 2019
1 parent 9d9cbd1 commit 3f40330
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions tests/testsuite/cross_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ fn plugin_deps() {
r#"
#![feature(plugin_registrar, rustc_private)]
extern crate rustc_plugin;
extern crate rustc_driver;
extern crate syntax;
use rustc_plugin::Registry;
use rustc_driver::plugin::Registry;
use syntax::tokenstream::TokenTree;
use syntax::source_map::Span;
use syntax::ast::*;
Expand Down Expand Up @@ -296,11 +296,11 @@ fn plugin_to_the_max() {
r#"
#![feature(plugin_registrar, rustc_private)]
extern crate rustc_plugin;
extern crate rustc_driver;
extern crate syntax;
extern crate baz;
use rustc_plugin::Registry;
use rustc_driver::plugin::Registry;
use syntax::tokenstream::TokenTree;
use syntax::source_map::Span;
use syntax::ast::*;
Expand Down Expand Up @@ -446,10 +446,10 @@ fn plugin_with_extra_dylib_dep() {
r#"
#![feature(plugin_registrar, rustc_private)]
extern crate rustc_plugin;
extern crate baz;
extern crate rustc_driver;
use rustc_plugin::Registry;
use rustc_driver::plugin::Registry;
#[plugin_registrar]
pub fn foo(reg: &mut Registry) {
Expand Down
8 changes: 4 additions & 4 deletions tests/testsuite/plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ fn plugin_to_the_max() {
r#"
#![feature(plugin_registrar, rustc_private)]
extern crate rustc_plugin;
extern crate baz;
extern crate rustc_driver;
use rustc_plugin::Registry;
use rustc_driver::plugin::Registry;
#[plugin_registrar]
pub fn foo(_reg: &mut Registry) {
Expand Down Expand Up @@ -190,9 +190,9 @@ fn plugin_with_dynamic_native_dependency() {
"bar/src/lib.rs",
r#"
#![feature(plugin_registrar, rustc_private)]
extern crate rustc_plugin;
use rustc_plugin::Registry;
extern crate rustc_driver;
use rustc_driver::plugin::Registry;
#[cfg_attr(not(target_env = "msvc"), link(name = "builder"))]
#[cfg_attr(target_env = "msvc", link(name = "builder.dll"))]
Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite/proc_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ fn plugin_and_proc_macro() {
#![feature(plugin_registrar, rustc_private)]
#![feature(proc_macro, proc_macro_lib)]
extern crate rustc_plugin;
use rustc_plugin::Registry;
extern crate rustc_driver;
use rustc_driver::plugin::Registry;
extern crate proc_macro;
use proc_macro::TokenStream;
Expand Down

0 comments on commit 3f40330

Please sign in to comment.