tamer: nir::air::NirToAir::parse_token: Exhaustiveness without wildcard

Let's start to be explicit about what's missing as we continue to add new
tokens; the exhaustiveness checks throughout the system will guide the
changes that need to be made.

DEV-13708
main
Mike Gerwitz 2023-02-24 16:41:17 -05:00
parent 5865d86485
commit d5cf276de2
1 changed files with 10 additions and 1 deletions

View File

@ -93,7 +93,16 @@ impl ParseState for NirToAir {
Transition(Ready).ok(Air::ExprIdent(spair))
}
_ => Transition(Ready).ok(Air::Todo),
(
Ready,
Nir::Todo
| Nir::TodoAttr(..)
| Nir::Ref(..)
| Nir::Desc(..)
| Nir::Text(_)
| Nir::Open(NirEntity::TplParam, _)
| Nir::Close(NirEntity::TplParam, _),
) => Transition(Ready).ok(Air::Todo),
}
}