@@ -46,7 +46,7 @@ impl LintLevelSource {
4646}
4747
4848/// A tuple of a lint level and its source.
49- pub type LevelSource = ( Level , LintLevelSource ) ;
49+ pub type LevelAndSource = ( Level , LintLevelSource ) ;
5050
5151pub struct LintLevelSets {
5252 pub list : Vec < LintSet > ,
@@ -57,11 +57,11 @@ pub enum LintSet {
5757 CommandLine {
5858 // -A,-W,-D flags, a `Symbol` for the flag itself and `Level` for which
5959 // flag.
60- specs : FxHashMap < LintId , LevelSource > ,
60+ specs : FxHashMap < LintId , LevelAndSource > ,
6161 } ,
6262
6363 Node {
64- specs : FxHashMap < LintId , LevelSource > ,
64+ specs : FxHashMap < LintId , LevelAndSource > ,
6565 parent : u32 ,
6666 } ,
6767}
@@ -75,9 +75,9 @@ impl LintLevelSets {
7575 & self ,
7676 lint : & ' static Lint ,
7777 idx : u32 ,
78- aux : Option < & FxHashMap < LintId , LevelSource > > ,
78+ aux : Option < & FxHashMap < LintId , LevelAndSource > > ,
7979 sess : & Session ,
80- ) -> LevelSource {
80+ ) -> LevelAndSource {
8181 let ( level, mut src) = self . get_lint_id_level ( LintId :: of ( lint) , idx, aux) ;
8282
8383 // If `level` is none then we actually assume the default level for this
@@ -113,7 +113,7 @@ impl LintLevelSets {
113113 & self ,
114114 id : LintId ,
115115 mut idx : u32 ,
116- aux : Option < & FxHashMap < LintId , LevelSource > > ,
116+ aux : Option < & FxHashMap < LintId , LevelAndSource > > ,
117117 ) -> ( Option < Level > , LintLevelSource ) {
118118 if let Some ( specs) = aux {
119119 if let Some ( & ( level, src) ) = specs. get ( & id) {
@@ -157,7 +157,7 @@ impl LintLevelMap {
157157 lint : & ' static Lint ,
158158 id : HirId ,
159159 session : & Session ,
160- ) -> Option < LevelSource > {
160+ ) -> Option < LevelAndSource > {
161161 self . id_to_set . get ( & id) . map ( |idx| self . sets . get_lint_level ( lint, * idx, None , session) )
162162 }
163163}
0 commit comments