Skip to content

Commit e37f0fe

Browse files
committed
Add regression test
1 parent b441b80 commit e37f0fe

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Running --merge=finalize without an input crate root should not trigger ICE.
2+
// Issue: https://github.com/rust-lang/rust/issues/146646
3+
4+
//@ needs-target-std
5+
6+
use run_make_support::rustdoc;
7+
8+
fn main() {
9+
rustdoc()
10+
.input("sierra.rs")
11+
.arg("-Zunstable-options")
12+
.arg("--parts-out-dir=parts")
13+
.arg("--merge=none")
14+
.run();
15+
16+
rustdoc()
17+
.arg("-Zunstable-options")
18+
.arg("--include-parts-dir=parts")
19+
.arg("--merge=finalize")
20+
.out_dir("out")
21+
.run();
22+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub struct Sierra;

0 commit comments

Comments
 (0)