[compiler] Migrate CompilerError.invariant to new CompilerDiagnostic infra
Mechanical PR to migrate existing invariants to use the new CompilerDiagnostic infra @josephsavona added. Will tackle the others at a later time.
L
Lauren Tan committed
fdac79b25ccf6e5cd38dfb9f75fb921d4ba2a1d6
Parent: 1fef581