about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-09-29 20:23:02 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-10-09 20:26:06 +0200
commite3b1be3b624d6b225901e617bfe28f55b4ebac6d (patch)
tree416d8fd3de4d5946f6dd156e189747366b025e6b /src/test
parent6bea76f175f1a565320a1a93a174fb80567dda7c (diff)
Remove unneeded ImportItem on glob ones
Diffstat (limited to 'src/test')
-rw-r--r--src/test/rustdoc-ui/pub-export-lint.rs3
-rw-r--r--src/test/rustdoc-ui/pub-export-lint.stderr12
-rw-r--r--src/test/rustdoc/reexport-check.rs2
3 files changed, 2 insertions, 15 deletions
diff --git a/src/test/rustdoc-ui/pub-export-lint.rs b/src/test/rustdoc-ui/pub-export-lint.rs
index 31953206fd9..3fd3f774009 100644
--- a/src/test/rustdoc-ui/pub-export-lint.rs
+++ b/src/test/rustdoc-ui/pub-export-lint.rs
@@ -1,8 +1,5 @@
 #![deny(broken_intra_doc_links)]
 
-/// [somewhere]
-//~^ ERROR unresolved link to `somewhere`
-pub use std::str::*;
 /// [aloha]
 //~^ ERROR unresolved link to `aloha`
 pub use std::task::RawWakerVTable;
diff --git a/src/test/rustdoc-ui/pub-export-lint.stderr b/src/test/rustdoc-ui/pub-export-lint.stderr
index 7fc24d9bea3..c345def794c 100644
--- a/src/test/rustdoc-ui/pub-export-lint.stderr
+++ b/src/test/rustdoc-ui/pub-export-lint.stderr
@@ -1,4 +1,4 @@
-error: unresolved link to `somewhere`
+error: unresolved link to `aloha`
   --> $DIR/pub-export-lint.rs:3:6
    |
 LL | /// [aloha]
@@ -11,13 +11,5 @@ LL | #![deny(broken_intra_doc_links)]
    |         ^^^^^^^^^^^^^^^^^^^^^^
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
 
-error: unresolved link to `aloha`
-  --> $DIR/pub-export-lint.rs:6:6
-   |
-LL | /// [aloha]
-   |      ^^^^^ the module `pub_export_lint` contains no item named `aloha`
-   |
-   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
-
-error: aborting due to 2 previous errors
+error: aborting due to previous error
 
diff --git a/src/test/rustdoc/reexport-check.rs b/src/test/rustdoc/reexport-check.rs
index 9ecf1abbea9..dea72b81a57 100644
--- a/src/test/rustdoc/reexport-check.rs
+++ b/src/test/rustdoc/reexport-check.rs
@@ -7,5 +7,3 @@ pub use std::i32;
 // @!has 'foo/index.html' '//code' 'pub use self::string::String;'
 // @has 'foo/index.html' '//tr[@class="module-item"]' 'String'
 pub use std::string::String;
-// @!has 'foo/index.html' '//code' 'pub use self::string::*;'
-pub use std::string::*;