rust/compiler/rustc_mir_build
bors fe03b46ee4 Auto merge of #113609 - nnethercote:maybe_lint_level_root_bounded-cache, r=cjgillot
Add a cache for `maybe_lint_level_root_bounded`

`maybe_lint_level_root_bounded` is called many times and traces node sub-paths many times. This PR adds a cache that lets many of these tracings be skipped, avoiding lots of calls to functions like `Map::attrs` and `Map::parent_id`.

r? `@cjgillot`
2023-07-14 05:30:53 +00:00
..
src Auto merge of #113609 - nnethercote:maybe_lint_level_root_bounded-cache, r=cjgillot 2023-07-14 05:30:53 +00:00
Cargo.toml
messages.ftl use translatable subdiagnostic 2023-06-28 01:51:53 -04:00