Skip to content

Commit 9a1ca94

Browse files
committed
Add regression test
1 parent b441b80 commit 9a1ca94

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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::rfs::read_to_string;
7+
use run_make_support::{path, rustdoc, serde_json};
8+
9+
fn main() {
10+
rustdoc()
11+
.input("sierra.rs")
12+
.arg("-Zunstable-options")
13+
.arg("--parts-out-dir=parts")
14+
.arg("--merge=none")
15+
.run();
16+
17+
rustdoc()
18+
.arg("-Zunstable-options")
19+
.arg("--include-parts-dir=parts")
20+
.arg("--merge=finalize")
21+
.out_dir("out")
22+
.run();
23+
}
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)