@@ -46,7 +46,7 @@ impl LintLevelSource {
46
46
}
47
47
48
48
/// A tuple of a lint level and its source.
49
- pub type LevelSource = ( Level , LintLevelSource ) ;
49
+ pub type LevelAndSource = ( Level , LintLevelSource ) ;
50
50
51
51
pub struct LintLevelSets {
52
52
pub list : Vec < LintSet > ,
@@ -57,11 +57,11 @@ pub enum LintSet {
57
57
CommandLine {
58
58
// -A,-W,-D flags, a `Symbol` for the flag itself and `Level` for which
59
59
// flag.
60
- specs : FxHashMap < LintId , LevelSource > ,
60
+ specs : FxHashMap < LintId , LevelAndSource > ,
61
61
} ,
62
62
63
63
Node {
64
- specs : FxHashMap < LintId , LevelSource > ,
64
+ specs : FxHashMap < LintId , LevelAndSource > ,
65
65
parent : u32 ,
66
66
} ,
67
67
}
@@ -75,9 +75,9 @@ impl LintLevelSets {
75
75
& self ,
76
76
lint : & ' static Lint ,
77
77
idx : u32 ,
78
- aux : Option < & FxHashMap < LintId , LevelSource > > ,
78
+ aux : Option < & FxHashMap < LintId , LevelAndSource > > ,
79
79
sess : & Session ,
80
- ) -> LevelSource {
80
+ ) -> LevelAndSource {
81
81
let ( level, mut src) = self . get_lint_id_level ( LintId :: of ( lint) , idx, aux) ;
82
82
83
83
// If `level` is none then we actually assume the default level for this
@@ -113,7 +113,7 @@ impl LintLevelSets {
113
113
& self ,
114
114
id : LintId ,
115
115
mut idx : u32 ,
116
- aux : Option < & FxHashMap < LintId , LevelSource > > ,
116
+ aux : Option < & FxHashMap < LintId , LevelAndSource > > ,
117
117
) -> ( Option < Level > , LintLevelSource ) {
118
118
if let Some ( specs) = aux {
119
119
if let Some ( & ( level, src) ) = specs. get ( & id) {
@@ -157,7 +157,7 @@ impl LintLevelMap {
157
157
lint : & ' static Lint ,
158
158
id : HirId ,
159
159
session : & Session ,
160
- ) -> Option < LevelSource > {
160
+ ) -> Option < LevelAndSource > {
161
161
self . id_to_set . get ( & id) . map ( |idx| self . sets . get_lint_level ( lint, * idx, None , session) )
162
162
}
163
163
}
0 commit comments