]> git.lizzy.rs Git - rust.git/commitdiff
fix fallout in ui-fulldeps
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 8 Jan 2020 21:54:08 +0000 (22:54 +0100)
committerMazdak Farrokhzad <twingoow@gmail.com>
Sat, 11 Jan 2020 02:30:20 +0000 (03:30 +0100)
src/test/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.rs
src/test/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.stderr

index 7ce2a1dd9a62dfe780d8d69d15c0b5733fe8459e..8d9cbe45fc69686fc47814f0fd97e9280d91dd46 100644 (file)
@@ -6,9 +6,8 @@
 extern crate rustc;
 extern crate rustc_session;
 
-use rustc::lint::{LintArray, LintPass};
-use rustc::{declare_lint_pass, impl_lint_pass};
-use rustc_session::declare_lint;
+use rustc_session::lint::{LintArray, LintPass};
+use rustc_session::{declare_lint, declare_lint_pass, impl_lint_pass};
 
 declare_lint! {
     pub TEST_LINT,
index ad8670c6c83c8b92bbec2074738abbad9e608608..39ac0019aac239063452504f5476a7a6f7485775 100644 (file)
@@ -1,5 +1,5 @@
 error: implementing `LintPass` by hand
-  --> $DIR/lint_pass_impl_without_macro.rs:21:6
+  --> $DIR/lint_pass_impl_without_macro.rs:20: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:31:14
+  --> $DIR/lint_pass_impl_without_macro.rs:30:14
    |
 LL |         impl LintPass for Custom {
    |              ^^^^^^^^