Files
rust/compiler
Nicholas Nethercote 22cf1fb6fe Split LintExpectationId
`LintExpectationId` has two variants, `Unstable` and `Stable`. There are
some places where both variants are possible, but there are also places
where only one of `Unstable` or `Stable` is possible.

This commit encodes this into the type system by introducing
new types `UnstableLintExpectationId` and `StableLintExpectationId`. The
variants of `LintExpectationId` now enclose these. This makes it clearer
what values are possible where.

Other things of note:
- `LintLevelsProvider` gets an associated type and some method changes.
- `LintContext` gets an associated type.
- `LevelSpec` is made generic. `UnstableLevelSpec` and `StableLevelSpec`
  typedefs are added.
- The unstable types are now guaranteed by the type system to never be
  stably hashed. Previously this was a runtime check.
2026-05-16 21:16:35 +10:00
..
2026-05-12 17:09:19 +02:00
2026-05-07 22:22:56 +09:00
2026-05-04 16:28:58 +00:00
2026-05-16 21:16:35 +10:00
2026-05-04 16:28:58 +00:00
2026-05-07 20:23:37 +03:00
2026-05-12 17:09:19 +02:00
2026-05-12 22:03:27 +02:00
2026-05-11 21:32:42 +02:00
2026-05-16 21:16:35 +10:00
2026-05-16 21:16:35 +10:00
2026-05-16 21:16:35 +10:00
2026-05-12 21:58:50 +02:00
2026-05-11 21:32:42 +02:00
2026-05-16 21:16:35 +10:00
2026-05-12 17:09:19 +02:00
2026-05-12 21:58:50 +02:00
2026-04-08 21:09:07 +02:00
2026-05-12 17:09:19 +02:00
2026-05-12 17:09:19 +02:00
2026-05-12 21:58:50 +02:00
2026-05-12 21:58:50 +02:00