diff options
| author | bit-aloo <sshourya17@gmail.com> | 2025-07-21 20:10:58 +0530 |
|---|---|---|
| committer | bit-aloo <sshourya17@gmail.com> | 2025-07-21 20:14:09 +0530 |
| commit | fb10084b84b23e042c8888490c771ae5a315cfab (patch) | |
| tree | ad05d4c67ece3f7a1e2fcc8a9906144f8d3fc301 | |
| parent | 4ca5afdc7ac807da8e1beac0813515cc36ef1ac0 (diff) | |
| download | rust-fb10084b84b23e042c8888490c771ae5a315cfab.tar.gz rust-fb10084b84b23e042c8888490c771ae5a315cfab.zip | |
add test_lld_opt_in test
| -rw-r--r-- | src/bootstrap/src/core/builder/tests.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/bootstrap/src/core/builder/tests.rs b/src/bootstrap/src/core/builder/tests.rs index 81a526593b4..4cc57996f3f 100644 --- a/src/bootstrap/src/core/builder/tests.rs +++ b/src/bootstrap/src/core/builder/tests.rs @@ -1646,22 +1646,15 @@ mod snapshot { #[test] fn test_lld_opt_in() { - let target: &'static str = Box::leak(Box::new(host_target())); - let slice: &'static [&'static str] = Box::leak(Box::new([target])); - - with_lld_opt_in_targets(slice, || { + with_lld_opt_in_targets(vec![host_target()], || { let ctx = TestCtx::new(); - insta::assert_snapshot!( - ctx.config("doc") - .path("core") - .override_target_no_std(&host_target()) + ctx.config("build") + .path("compiler") .render_steps(), @r" [build] llvm <host> [build] rustc 0 <host> -> rustc 1 <host> [build] rustc 0 <host> -> LldWrapper 1 <host> - [build] rustdoc 0 <host> - [doc] std 1 <host> crates=[core] "); }); } |
