summaryrefslogtreecommitdiff
path: root/tests/ui/rust-2018
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-04-10 16:46:12 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-04-12 22:50:10 +0000
commit9fadcc143a49a124fa1d0d3261593defb986a987 (patch)
tree893e65c8134b89447a09716b0d0c34979a94cc22 /tests/ui/rust-2018
parent5b40aa5eb484b31c9a82c1b1a0f414840477b9ea (diff)
Special-case item attributes in the suggestion output
Diffstat (limited to 'tests/ui/rust-2018')
-rw-r--r--tests/ui/rust-2018/issue-52202-use-suggestions.stderr4
-rw-r--r--tests/ui/rust-2018/trait-import-suggestions.stderr3
-rw-r--r--tests/ui/rust-2018/uniform-paths/issue-87932.stderr1
3 files changed, 0 insertions, 8 deletions
diff --git a/tests/ui/rust-2018/issue-52202-use-suggestions.stderr b/tests/ui/rust-2018/issue-52202-use-suggestions.stderr
index 5450ede8223..9933b92439c 100644
--- a/tests/ui/rust-2018/issue-52202-use-suggestions.stderr
+++ b/tests/ui/rust-2018/issue-52202-use-suggestions.stderr
@@ -7,16 +7,12 @@ LL | let _d = Drain {};
help: consider importing one of these items
|
LL + use crate::plumbing::Drain;
-LL | mod plumbing {
|
LL + use std::collections::binary_heap::Drain;
-LL | mod plumbing {
|
LL + use std::collections::hash_map::Drain;
-LL | mod plumbing {
|
LL + use std::collections::hash_set::Drain;
-LL | mod plumbing {
|
and 3 other candidates
diff --git a/tests/ui/rust-2018/trait-import-suggestions.stderr b/tests/ui/rust-2018/trait-import-suggestions.stderr
index 4be5c7b0d0c..325c5976e7c 100644
--- a/tests/ui/rust-2018/trait-import-suggestions.stderr
+++ b/tests/ui/rust-2018/trait-import-suggestions.stderr
@@ -11,7 +11,6 @@ LL | x.foobar();
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
LL + use crate::foo::foobar::Foobar;
-LL | mod foobar {
|
error[E0599]: no method named `bar` found for type `u32` in the current scope
@@ -27,7 +26,6 @@ LL | x.bar();
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
LL + use crate::foo::Bar;
-LL | mod foo {
|
error[E0599]: no method named `baz` found for type `u32` in the current scope
@@ -46,7 +44,6 @@ LL | let y = u32::from_str("33");
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
LL + use std::str::FromStr;
-LL | mod foo {
|
help: there is an associated function with a similar name
|
diff --git a/tests/ui/rust-2018/uniform-paths/issue-87932.stderr b/tests/ui/rust-2018/uniform-paths/issue-87932.stderr
index e5e17f22c5f..ac2baa3595b 100644
--- a/tests/ui/rust-2018/uniform-paths/issue-87932.stderr
+++ b/tests/ui/rust-2018/uniform-paths/issue-87932.stderr
@@ -11,7 +11,6 @@ LL | A::deserialize();
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
LL + use <crate::A as issue_87932_a::Deserialize>::deserialize::_a::Deserialize;
-LL | pub struct A {}
|
error: aborting due to previous error