Nixon Enraght-Moony 95729dcc73 check_missing_items.py: Don't overwrite ty in loop
Because python doesn't have lexical scope, loop variables
persist after the loop is exited, set to the value of the last
itteration

```
>>> i = 0
>>> for i in range(10): pass
...
>>> i
9
```

This causes the `ty` variable to be changed, causing unexpected crashes on
```
pub type RefFn<'a> = &'a dyn for<'b> Fn(&'a i32) -> i32;
```
2022-07-30 20:13:40 +01:00
..
2022-04-14 19:37:39 +02:00
2022-04-14 19:37:39 +02:00