]> git.lizzy.rs Git - rust.git/commit
operate on `HirId` in `hir::Pat::each_binding`, and consequences of that
authorZack M. Davis <code@zackmdavis.net>
Mon, 21 May 2018 03:19:34 +0000 (20:19 -0700)
committerZack M. Davis <code@zackmdavis.net>
Mon, 28 May 2018 16:20:14 +0000 (09:20 -0700)
commit1329605a3d92e2b4a656895d3f00d508b48b4f57
tree468142a89a80d3e7914ed6793256e7524f486495
parent2b1d69d6b520046108dae04c625f15ea35127388
operate on `HirId` in `hir::Pat::each_binding`, and consequences of that

Changing the `each_binding` utility method to take the `HirId` of a
binding pattern rather than its `NodeId` seems like a modest first step
in support of the `HirId`ification initiative #50928. (The inspiration
for choosing this in particular came from the present author's previous
work on diagnostics issued during liveness analysis, which is the most
greatly affected module in this change.)
src/librustc/hir/pat_util.rs
src/librustc/middle/expr_use_visitor.rs
src/librustc/middle/liveness.rs
src/librustc/ty/context.rs
src/librustc/util/nodemap.rs
src/librustc_borrowck/borrowck/unused.rs
src/librustc_mir/hair/pattern/check_match.rs
src/librustc_typeck/check/regionck.rs