Compute lint_levels by definition
This commit is contained in:
@@ -273,10 +273,14 @@ rustc_queries! {
|
||||
separate_provide_extern
|
||||
}
|
||||
|
||||
query lint_levels(_: ()) -> LintLevelMap {
|
||||
query lint_levels_on(key: HirId) -> FxHashMap<LintId, LevelAndSource> {
|
||||
arena_cache
|
||||
eval_always
|
||||
desc { "computing the lint levels for items in this crate" }
|
||||
desc { |tcx| "looking up lint levels for `{}`", key }
|
||||
}
|
||||
|
||||
query lint_expectations(_: ()) -> Vec<(LintExpectationId, LintExpectation)> {
|
||||
arena_cache
|
||||
desc { "computing `#[expect]`ed lints in this crate" }
|
||||
}
|
||||
|
||||
query parent_module_from_def_id(key: LocalDefId) -> LocalDefId {
|
||||
|
||||
Reference in New Issue
Block a user