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-13708main
parent
5865d86485
commit
d5cf276de2
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue