Skip to content

Commit a187d0a

Browse files
committed
add regression test for #97589
1 parent 9a7644e commit a187d0a

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@ error-pattern: circular modules
2+
// Regression test for #97589: a doc-comment on a circular module bypassed cycle detection
3+
4+
#![crate_type = "lib"]
5+
6+
pub mod recursive;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: circular modules: $DIR/recursive.rs -> $DIR/recursive.rs
2+
--> $DIR/recursive.rs:6:1
3+
|
4+
LL | mod recursive;
5+
| ^^^^^^^^^^^^^^
6+
7+
error: aborting due to 1 previous error
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@ ignore-test: this is an auxiliary file for circular-module-with-doc-comment-issue-97589.rs
2+
3+
//! this comment caused the circular dependency checker to break
4+
5+
#[path = "recursive.rs"]
6+
mod recursive;

0 commit comments

Comments
 (0)