Params being unused were being incorrectly reported. This was because params need to be initialized at a scope above both the validator functions. This manifested when using a multi-validator where one of the params was not used in both validators. The easy fix was to add a field called `is_validator_param` to `ArgName`. Then when infering a function we don't initialize args that are validator params. We now handle this in a scope that is created before in the match branch for validator in the `infer_definition` function. In there we call `.in_new_scope` and initialize params for usage detection. |
||
|---|---|---|
| .. | ||
| check.rs | ||
| format.rs | ||
| lexer.rs | ||
| mod.rs | ||
| parser.rs | ||