Convert rust_libraries and rust_stdlinkage mutators to TransitionMutators

Replace rust.LibraryMutator and rust.LibstdMutator with
TransitionMutators.

Bug: 319288033
Flag: EXEMPT refactor
Test: all soong tests pass
Test: no change to build.ninja
Change-Id: Ia24a582119d39889279d7b93bac9259685153619
This commit is contained in:
Colin Cross
2024-05-20 12:22:27 -07:00
parent 17f9dc5f76
commit 8a49a3dd76
9 changed files with 172 additions and 138 deletions

View File

@@ -86,20 +86,19 @@ endif`,
},
{
name: "Blank line in rule's command",
in: `all:
in: `all:
echo first line
echo second line`,
out: []Node{
&Rule{
Target: SimpleMakeString("all", NoPos),
RecipePos: NoPos,
Recipe: "echo first line\necho second line",
Target: SimpleMakeString("all", NoPos),
RecipePos: NoPos,
Recipe: "echo first line\necho second line",
Prerequisites: SimpleMakeString("", NoPos),
},
},
},
}
func TestParse(t *testing.T) {