implement @expect builtin (#19658)

* implement `@expect`

* add docs

* add a second arg for expected bool

* fix typo

* move `expect` to use BinOp

* update to newer langref format
This commit is contained in:
David Rubin
2024-05-22 08:51:16 -07:00
committed by GitHub
parent ed75f62568
commit a7de02e052
25 changed files with 202 additions and 1 deletions

View File

@@ -5546,6 +5546,7 @@ pub const Feature = enum {
/// to generate better machine code in the backends. All backends should migrate to
/// enabling this feature.
safety_checked_instructions,
can_expect,
};
pub fn backendSupportsFeature(zcu: Module, feature: Feature) bool {