diff options
| author | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-07-26 14:34:26 +0100 |
|---|---|---|
| committer | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2022-07-30 20:13:40 +0100 |
| commit | 95729dcc733edd9f639855081cae8e24bc44fb30 (patch) | |
| tree | ab37c27e13c0c8e3505e06f9b4ee511b59e58879 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 1202bbaf48a0a919a2e0cfd8b7dce97e8fc3030d (diff) | |
| download | rust-95729dcc733edd9f639855081cae8e24bc44fb30.tar.gz rust-95729dcc733edd9f639855081cae8e24bc44fb30.zip | |
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; ```
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
