diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-08-26 17:22:13 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-08-26 17:24:52 -0400 |
| commit | c8b240241a94a3a5badcbdcbe1b642a0dd440119 (patch) | |
| tree | f2b1c944738928c976dde8f4787d4260b03be153 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 48717b6f3ce661d2a0d64f7bdfdfb5fd3484ee5b (diff) | |
| download | rust-c8b240241a94a3a5badcbdcbe1b642a0dd440119.tar.gz rust-c8b240241a94a3a5badcbdcbe1b642a0dd440119.zip | |
Avoid function-scoping global variables
In 2e6f2e885506ee4, we added a main function to the publish_toolstate.py script. Unfortunately, we missed that the Python program implicitly declares global variables in that code, which means that adding a function changes variable scoping and breaks other code. This commit avoids introducing that function and adds a warning to future editors of the code.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
