From ac7abbbe3fa2eea01defb670abc7dc1dc336cf21 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 25 Aug 2026 13:57:38 +0900 Subject: internal/rosa: read-only access to built-ins This removes potential footguns caused by mutable builtins without requiring unnecessary clones. Signed-off-by: Ophestra --- internal/rosa/rosa_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'internal/rosa/rosa_test.go') diff --git a/internal/rosa/rosa_test.go b/internal/rosa/rosa_test.go index 8d0917bb..86468ea4 100644 --- a/internal/rosa/rosa_test.go +++ b/internal/rosa/rosa_test.go @@ -28,7 +28,6 @@ var ( ) func TestMain(m *testing.M) { - rosa.Native().DropCaches("", rosa.OptLLVMNoLTO) container.TryArgv0(nil) code := m.Run() @@ -79,8 +78,8 @@ func TestCureAll(t *testing.T) { cache := getCache(t) t.Parallel() - for _, p := range rosa.Native().CollectAll() { - _, a := rosa.Native().Std().MustLoad(p) + for _, p := range rosa.CollectAll() { + _, a := rosa.MustLoad(p) t.Run(p.String(), func(t *testing.T) { t.Parallel() @@ -94,7 +93,7 @@ func TestCureAll(t *testing.T) { } func BenchmarkStage3(b *testing.B) { - t := rosa.Native().Clone().Std() + t := rosa.New().Std() llvm := rosa.H("llvm") for b.Loop() { -- cgit v1.3.1