Fix UI tests for new locations
This commit is contained in:
parent
42c4ae0d4b
commit
68fb218f22
8 changed files with 15 additions and 12 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
| ^^^^^^^^
|
||||
|
|
@ -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 {
|
||||
| ^^^^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue