]> git.lizzy.rs Git - rust.git/commit
Auto merge of #107206 - cjgillot:no-h2l-map, r=WaffleLapkin
authorbors <bors@rust-lang.org>
Sat, 28 Jan 2023 16:11:33 +0000 (16:11 +0000)
committerbors <bors@rust-lang.org>
Sat, 28 Jan 2023 16:11:33 +0000 (16:11 +0000)
commitd6f0642827e21a088b0130c84857d84f5433301d
tree9d109467a036373273b6166d41cc5bd855618a02
parentbca8b4dc32ec20f9a4e0ca55f54e5b2a531936fc
parent1aab86eae2f9e3e442f39577bd1bd62bccd8cc0c
Auto merge of #107206 - cjgillot:no-h2l-map, r=WaffleLapkin

Remove HirId -> LocalDefId map from HIR.

Having this map in HIR prevents the creating of new definitions after HIR has been built.
Thankfully, we do not need it.

Based on https://github.com/rust-lang/rust/pull/103902
compiler/rustc_lint/src/builtin.rs
compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
src/tools/clippy/clippy_utils/src/lib.rs