diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-01-12 16:20:57 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-01-16 21:59:11 +0300 |
| commit | c84efe9b6ca05f64d8b925acc2724971d186f8f6 (patch) | |
| tree | 543a087417a5599014360c4b0d85da31ea37daf3 /src/test/ui/proc-macro | |
| parent | 28c3f6eb409596be9c0c0a59dc1c26e216d9e57a (diff) | |
| download | rust-c84efe9b6ca05f64d8b925acc2724971d186f8f6.tar.gz rust-c84efe9b6ca05f64d8b925acc2724971d186f8f6.zip | |
resolve: Say "import" when reporting private imports
Diffstat (limited to 'src/test/ui/proc-macro')
| -rw-r--r-- | src/test/ui/proc-macro/disappearing-resolution.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/proc-macro/disappearing-resolution.stderr | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/proc-macro/disappearing-resolution.rs b/src/test/ui/proc-macro/disappearing-resolution.rs index a01b8f302ca..50f04b1eae1 100644 --- a/src/test/ui/proc-macro/disappearing-resolution.rs +++ b/src/test/ui/proc-macro/disappearing-resolution.rs @@ -8,7 +8,7 @@ extern crate test_macros; mod m { use test_macros::Empty; } -use m::Empty; //~ ERROR derive macro `Empty` is private +use m::Empty; //~ ERROR derive macro import `Empty` is private // To resolve `empty_helper` we need to resolve `Empty`. // During initial resolution `use m::Empty` introduces no entries, so we proceed to `macro_use`, diff --git a/src/test/ui/proc-macro/disappearing-resolution.stderr b/src/test/ui/proc-macro/disappearing-resolution.stderr index d81ab5ebf9b..3beaedf61d7 100644 --- a/src/test/ui/proc-macro/disappearing-resolution.stderr +++ b/src/test/ui/proc-macro/disappearing-resolution.stderr @@ -4,13 +4,13 @@ error: cannot find attribute `empty_helper` in this scope LL | #[empty_helper] | ^^^^^^^^^^^^ -error[E0603]: derive macro `Empty` is private +error[E0603]: derive macro import `Empty` is private --> $DIR/disappearing-resolution.rs:11:8 | LL | use m::Empty; - | ^^^^^ this derive macro is private + | ^^^^^ this derive macro import is private | -note: the derive macro `Empty` is defined here +note: the derive macro import `Empty` is defined here --> $DIR/disappearing-resolution.rs:9:9 | LL | use test_macros::Empty; |
