Skip to content

Commit b24fceb

Browse files
committed
add test_lld_opt_in test
1 parent 6ee9339 commit b24fceb

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/bootstrap/src/core/builder/tests.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,22 +1655,15 @@ mod snapshot {
16551655

16561656
#[test]
16571657
fn test_lld_opt_in() {
1658-
let target: &'static str = Box::leak(Box::new(host_target()));
1659-
let slice: &'static [&'static str] = Box::leak(Box::new([target]));
1660-
1661-
with_lld_opt_in_targets(slice, || {
1658+
with_lld_opt_in_targets(vec![host_target()], || {
16621659
let ctx = TestCtx::new();
1663-
16641660
insta::assert_snapshot!(
1665-
ctx.config("doc")
1666-
.path("core")
1667-
.override_target_no_std(&host_target())
1661+
ctx.config("build")
1662+
.path("compiler")
16681663
.render_steps(), @r"
16691664
[build] llvm <host>
16701665
[build] rustc 0 <host> -> rustc 1 <host>
16711666
[build] rustc 0 <host> -> LldWrapper 1 <host>
1672-
[build] rustdoc 0 <host>
1673-
[doc] std 1 <host> crates=[core]
16741667
");
16751668
});
16761669
}

0 commit comments

Comments
 (0)