Skip to content

Commit 3d041bd

Browse files
committed
Add test descriptions.
1 parent 8e24091 commit 3d041bd

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/test/run-pass/issue-4865-2.rs

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// Previously, this would have failed to resolve due to the circular
12+
// block between `use say` and `pub use hello::*`.
13+
//
14+
// Now, as `use say` is not `pub`, the glob import can resolve
15+
// without any problem and this resolves fine.
16+
1117
pub use hello::*;
1218

1319
pub mod say {

src/test/run-pass/issue-4865-3.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// This should resolve fine even with the circular imports as
12+
// they are not `pub`.
13+
1114
pub mod a {
12-
use b::*;
15+
use b::*;
1316
}
1417

1518
pub mod b {
16-
use a::*;
19+
use a::*;
1720
}
1821

1922
use a::*;

0 commit comments

Comments
 (0)