Skip to content

Commit e3265cd

Browse files
committed
fix ui-fulldeps
1 parent 5241681 commit e3265cd

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

‎tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
#![deny(rustc::lint_pass_impl_without_macro)]
55

66
extern crate rustc_middle;
7-
extern crate rustc_session;
7+
extern crate rustc_lint;
88

9-
use rustc_session::lint::{LintPass, LintVec, Lint};
10-
use rustc_session::{declare_lint, declare_lint_pass, impl_lint_pass};
9+
use rustc_lint::{Lint, LintPass, LintVec, declare_lint, declare_lint_pass, impl_lint_pass};
1110

1211
declare_lint! {
1312
pub TEST_LINT,

‎tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.stderr‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: implementing `LintPass` by hand
2-
--> $DIR/lint_pass_impl_without_macro.rs:20:6
2+
--> $DIR/lint_pass_impl_without_macro.rs:19:6
33
|
44
LL | impl LintPass for Foo {
55
| ^^^^^^^^
@@ -12,7 +12,7 @@ LL | #![deny(rustc::lint_pass_impl_without_macro)]
1212
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313

1414
error: implementing `LintPass` by hand
15-
--> $DIR/lint_pass_impl_without_macro.rs:34:14
15+
--> $DIR/lint_pass_impl_without_macro.rs:33:14
1616
|
1717
LL | impl LintPass for Custom {
1818
| ^^^^^^^^

‎tests/ui-fulldeps/lint-pass-macros.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33

44
#![feature(rustc_private)]
55

6-
extern crate rustc_session;
6+
extern crate rustc_lint;
77

8-
use rustc_session::lint::{LintPass, LintVec};
9-
use rustc_session::{declare_lint, declare_lint_pass, impl_lint_pass};
8+
use rustc_lint::{LintPass, LintVec, declare_lint, declare_lint_pass, impl_lint_pass};
109

1110
declare_lint! {
1211
pub TEST_LINT,

0 commit comments

Comments
 (0)