Use () for lint_levels.
This commit is contained in:
parent
b7bf467fa3
commit
9d15abe0cc
3 changed files with 5 additions and 7 deletions
|
@ -199,7 +199,7 @@ rustc_queries! {
|
|||
desc { "looking up the native libraries of a linked crate" }
|
||||
}
|
||||
|
||||
query lint_levels(_: CrateNum) -> LintLevelMap {
|
||||
query lint_levels(_: ()) -> LintLevelMap {
|
||||
storage(ArenaCacheSelector<'tcx>)
|
||||
eval_always
|
||||
desc { "computing the lint levels for items in this crate" }
|
||||
|
|
|
@ -2623,7 +2623,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
lint: &'static Lint,
|
||||
mut id: hir::HirId,
|
||||
) -> (Level, LintLevelSource) {
|
||||
let sets = self.lint_levels(LOCAL_CRATE);
|
||||
let sets = self.lint_levels(());
|
||||
loop {
|
||||
if let Some(pair) = sets.level_and_source(lint, id, self.sess) {
|
||||
return pair;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue