about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/run-pass/issue-4865-2.rs6
-rw-r--r--src/test/run-pass/issue-4865-3.rs7
2 files changed, 11 insertions, 2 deletions
diff --git a/src/test/run-pass/issue-4865-2.rs b/src/test/run-pass/issue-4865-2.rs
index cd435bf6473..6de2f437b20 100644
--- a/src/test/run-pass/issue-4865-2.rs
+++ b/src/test/run-pass/issue-4865-2.rs
@@ -8,6 +8,12 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// Previously, this would have failed to resolve due to the circular
+// block between `use say` and `pub use hello::*`.
+//
+// Now, as `use say` is not `pub`, the glob import can resolve
+// without any problem and this resolves fine.
+
 pub use hello::*;
 
 pub mod say {
diff --git a/src/test/run-pass/issue-4865-3.rs b/src/test/run-pass/issue-4865-3.rs
index 0ed3a233587..d800ea6a665 100644
--- a/src/test/run-pass/issue-4865-3.rs
+++ b/src/test/run-pass/issue-4865-3.rs
@@ -8,12 +8,15 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// This should resolve fine even with the circular imports as
+// they are not `pub`.
+
 pub mod a {
-  use b::*;
+    use b::*;
 }
 
 pub mod b {
-  use a::*;
+    use a::*;
 }
 
 use a::*;