41e7924670
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'`.