about summary refs log tree commit diff
path: root/src/test/rustdoc/viewpath-self.rs
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2016-11-24 06:11:31 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2016-11-28 04:18:10 +0200
commitbc096549e84d1edbd051f0b42662c038dd935ff6 (patch)
tree7badba7d27fb7a03e9b87250665b56b83276997d /src/test/rustdoc/viewpath-self.rs
parent6ebc6d8154eb80eef585603a143d1b0008b93e91 (diff)
downloadrust-bc096549e84d1edbd051f0b42662c038dd935ff6.tar.gz
rust-bc096549e84d1edbd051f0b42662c038dd935ff6.zip
rustc: desugar `use a::{b,c};` into `use a::b; use a::c;` in HIR.
Diffstat (limited to 'src/test/rustdoc/viewpath-self.rs')
-rw-r--r--src/test/rustdoc/viewpath-self.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/rustdoc/viewpath-self.rs b/src/test/rustdoc/viewpath-self.rs
index 65a981353f0..000960ad972 100644
--- a/src/test/rustdoc/viewpath-self.rs
+++ b/src/test/rustdoc/viewpath-self.rs
@@ -21,8 +21,11 @@ pub enum Maybe<A> {
 
 // @has foo/prelude/index.html
 pub mod prelude {
-    // @has foo/prelude/index.html '//code' 'pub use io::{self, Reader}'
+    // @has foo/prelude/index.html '//code' 'pub use io;'
+    // @has foo/prelude/index.html '//code' 'pub use io::Reader;'
     #[doc(no_inline)] pub use io::{self, Reader};
-    // @has foo/prelude/index.html '//code' 'pub use Maybe::{self, Just, Nothing}'
+    // @has foo/prelude/index.html '//code' 'pub use Maybe;'
+    // @has foo/prelude/index.html '//code' 'pub use Maybe::Just;'
+    // @has foo/prelude/index.html '//code' 'pub use Maybe::Nothing;'
     #[doc(no_inline)] pub use Maybe::{self, Just, Nothing};
 }