Increase max union variants in resolver

984e56df27c2515b442dbc5341d5867b589cd30bdb39b37651c007c71cc97583
This is in preparation of adding new token kinds to the scanner,
which will blow passed the old limit.

We create a separate commit to be the basis for a new seed.
Alexis Sellier committed ago 1 parent 3831ea43
lib/std/lang/resolver.rad +1 -1
38 38
/// Maximum function thrown types.
39 39
pub const MAX_FN_THROWS: u32 = 8;
40 40
/// Maximum number of variants in a union.
41 41
/// Nb. This should not be raised above `255`,
42 42
/// as tags are stored using 8-bits only.
43 -
pub const MAX_UNION_VARIANTS: u32 = 96;
43 +
pub const MAX_UNION_VARIANTS: u32 = 128;
44 44
/// Maximum nesting of loops.
45 45
pub const MAX_LOOP_DEPTH: u32 = 16;
46 46
47 47
/// Identifier for the synthetic `len` field.
48 48
pub const LEN_FIELD: *[u8] = "len";