Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Import rustc_plugin from its new location #7287

Merged
merged 1 commit into from
Aug 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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