]> git.lizzy.rs Git - rust.git/commit
scrap `find_node_for_hir_id` in favor of `hir_to_node_id`
authorZack M. Davis <code@zackmdavis.net>
Sun, 27 May 2018 00:30:26 +0000 (17:30 -0700)
committerZack M. Davis <code@zackmdavis.net>
Mon, 28 May 2018 16:20:14 +0000 (09:20 -0700)
commit1b7488d40b6182e1104c2472fd80d4333e2f2861
treebdcc6eb1b04138dd69b0c644dc6356a810e935a5
parent078486b9f653c25b9df010d67d6d3886e61bb114
scrap `find_node_for_hir_id` in favor of `hir_to_node_id`

Michael Woerister pointed out that `hir_to_node_id` (introduced in
August 2017's 28ddd7a4e) supersedes the functionality of
`find_node_for_hir_id` (just a hash lookup compared to that linear
search).
src/librustc/hir/map/definitions.rs
src/librustc/middle/expr_use_visitor.rs
src/librustc/middle/mem_categorization.rs
src/librustc/ty/context.rs
src/librustc_typeck/check/mod.rs
src/librustc_typeck/check/writeback.rs
src/librustc_typeck/check_unused.rs