Migrate sanitizers to transition mutators.

The logic is not 100% provably the same since HEAD was quite
confusing at some points, but I did make an effort to preserve
functional equivalence.

In case that effort was not enough, it should be pretty easy to
tweak the logic at HEAD since it's still quite malleable.

Bug: 231370928
Test: Presubmits.
Change-Id: I17b2efbfb5c4d0aedd922caed54ff8d857e578df
This commit is contained in:
Lukacs T. Berki
2022-06-13 20:50:39 +02:00
parent 1c6502eba2
commit 6c71676d6c
6 changed files with 354 additions and 210 deletions

View File

@@ -982,6 +982,7 @@ func (c *Module) Shared() bool {
return library.shared()
}
}
panic(fmt.Errorf("Shared() called on non-library module: %q", c.BaseModuleName()))
}