Skip to content

Commit

Permalink
Fix UI tests for new locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Dec 3, 2019
1 parent 42c4ae0 commit 68fb218
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/test/ui-fulldeps/auxiliary/issue-40001-plugin.rs
@@ -1,8 +1,8 @@
#![feature(box_syntax, plugin, plugin_registrar, rustc_private)]
#![crate_type = "dylib"]

#[macro_use]
extern crate rustc;
#[macro_use] extern crate rustc;
#[macro_use] extern crate rustc_session;
extern crate rustc_driver;
extern crate syntax;

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/auxiliary/lint-for-crate-rpass.rs
Expand Up @@ -2,8 +2,8 @@

#![feature(plugin_registrar, rustc_private)]
#![feature(box_syntax)]

#[macro_use] extern crate rustc;
#[macro_use] extern crate rustc_session;
extern crate rustc_driver;
extern crate syntax;

Expand Down
1 change: 1 addition & 0 deletions src/test/ui-fulldeps/auxiliary/lint-for-crate.rs
Expand Up @@ -4,6 +4,7 @@
#![feature(box_syntax)]

#[macro_use] extern crate rustc;
#[macro_use] extern crate rustc_session;
extern crate rustc_driver;
extern crate syntax;

Expand Down
4 changes: 2 additions & 2 deletions src/test/ui-fulldeps/auxiliary/lint-group-plugin-test.rs
Expand Up @@ -4,8 +4,8 @@
#![feature(box_syntax, rustc_private)]

// Load rustc as a plugin to get macros.
#[macro_use]
extern crate rustc;
#[macro_use] extern crate rustc;
#[macro_use] extern crate rustc_session;
extern crate rustc_driver;

use rustc::hir;
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui-fulldeps/auxiliary/lint-plugin-test.rs
Expand Up @@ -6,8 +6,8 @@
extern crate syntax;

// Load rustc as a plugin to get macros
#[macro_use]
extern crate rustc;
#[macro_use] extern crate rustc;
#[macro_use] extern crate rustc_session;
extern crate rustc_driver;

use rustc::lint::{EarlyContext, LintContext, LintPass, EarlyLintPass, LintArray};
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui-fulldeps/auxiliary/lint-tool-test.rs
Expand Up @@ -4,8 +4,8 @@
extern crate syntax;

// Load rustc as a plugin to get macros
#[macro_use]
extern crate rustc;
#[macro_use] extern crate rustc;
#[macro_use] extern crate rustc_session;
extern crate rustc_driver;

use rustc::lint::{EarlyContext, EarlyLintPass, LintArray, LintContext, LintPass, LintId};
Expand Down
Expand Up @@ -4,9 +4,11 @@
#![deny(rustc::lint_pass_impl_without_macro)]

extern crate rustc;
extern crate rustc_session;

use rustc::lint::{LintArray, LintPass};
use rustc::{declare_lint, declare_lint_pass, impl_lint_pass};
use rustc::{declare_lint_pass, impl_lint_pass};
use rustc_session::declare_lint;

declare_lint! {
pub TEST_LINT,
Expand Down
@@ -1,5 +1,5 @@
error: implementing `LintPass` by hand
--> $DIR/lint_pass_impl_without_macro.rs:19:6
--> $DIR/lint_pass_impl_without_macro.rs:21:6
|
LL | impl LintPass for Foo {
| ^^^^^^^^
Expand All @@ -12,7 +12,7 @@ LL | #![deny(rustc::lint_pass_impl_without_macro)]
= help: try using `declare_lint_pass!` or `impl_lint_pass!` instead

error: implementing `LintPass` by hand
--> $DIR/lint_pass_impl_without_macro.rs:29:14
--> $DIR/lint_pass_impl_without_macro.rs:31:14
|
LL | impl LintPass for Custom {
| ^^^^^^^^
Expand Down

0 comments on commit 68fb218

Please sign in to comment.