diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-09-05 02:22:06 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-09-05 02:32:36 +0200 |
| commit | 41e7924670aefe4c39dd4a060452eb623854fde9 (patch) | |
| tree | 4679597d00d23148c408e21366ba8975695e3b99 /src/rt/rust_android_dummy.cpp | |
| parent | 45c3ca72bc19230f82775eb4228f1b3f178baade (diff) | |
| download | rust-41e7924670aefe4c39dd4a060452eb623854fde9.tar.gz rust-41e7924670aefe4c39dd4a060452eb623854fde9.zip | |
Fix #7740: gather_loans should not recur into the items of the block.
gather_loans does not need to recurse into any items declared in the
current block. Rather than special-case `fk_item_fn` and `fk_method`,
just make the GatherLoanVisitor's visit_item method a no-op.
This indirectly implies that the example of #7740 is fixed:
fn f() {
static A: &'static char = &'A';
}
Since we do not recurse into items, we no longer encounter `&'A'`.
Diffstat (limited to 'src/rt/rust_android_dummy.cpp')
0 files changed, 0 insertions, 0 deletions
