Move some code and add comments.

This commit is contained in:
Camille GILLOT
2022-09-10 01:28:08 +02:00
parent bd45139cb0
commit ad09abc194
6 changed files with 195 additions and 255 deletions

View File

@@ -273,7 +273,7 @@ rustc_queries! {
separate_provide_extern
}
query lint_levels_on(key: HirId) -> FxHashMap<LintId, LevelAndSource> {
query shallow_lint_levels_on(key: HirId) -> rustc_middle::lint::ShallowLintLevelMap {
arena_cache
desc { |tcx| "looking up lint levels for `{}`", key }
}