about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-02-11 14:02:02 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-11 14:02:02 -0800
commitc9fdfdb2bb53565953c2a7fbf1e1e938804f32e6 (patch)
treef45b20948ff4070e08364c49cfd8c9d3ed423787 /src/rustllvm/ExecutionEngineWrapper.cpp
parent8b8331ad09790a2500b315acc436281c78f3c719 (diff)
parent73201fd675e6d7d6f1ab6c116a360a39a593de93 (diff)
downloadrust-c9fdfdb2bb53565953c2a7fbf1e1e938804f32e6.tar.gz
rust-c9fdfdb2bb53565953c2a7fbf1e1e938804f32e6.zip
rollup merge of #22048: LeoTestard/impl-patterns-used
The live code analysis only visited the function's body when visiting a
method, and not the FnDecl and the generics, resulting in code to be
incorrectly marked as unused when it only appeared in the generics, the
arguments, or the return type, whereas the same code in non-method
functions was correctly detected as used. Fixes #20343.

Originally I just added a call to `walk_generics` and `walk_fndecl` alongside `walk_block` but then I noticed the `walk_method_helper` function did pretty much the same thing. The only difference is that it also calls `visit_mac`, but since this is not going to happen at this stage, I think it's ok. However let me know if this was not the right thing to do.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions