@@ -117,14 +117,15 @@ impl ShallowLintLevelMap {
117
117
/// Perform a deep probe in the HIR tree looking for the actual level for the lint.
118
118
/// This lint level is not usable for diagnostics, it needs to be corrected by
119
119
/// `reveal_actual_level` beforehand.
120
- #[ instrument( level = "trace" , skip( self , tcx) , ret) ]
120
+ // #[instrument(level = "trace", skip(self, tcx), ret)]
121
121
fn probe_for_lint_level (
122
122
& self ,
123
- tcx : TyCtxt < ' _ > ,
124
- id : LintId ,
125
- start : HirId ,
123
+ _tcx : TyCtxt < ' _ > ,
124
+ _id : LintId ,
125
+ _start : HirId ,
126
126
) -> ( Option < Level > , LintLevelSource ) {
127
- if let Some ( map) = self . specs . get ( & start. local_id )
127
+ return ( Some ( Level :: Allow ) , LintLevelSource :: Default )
128
+ /*if let Some(map) = self.specs.get(&start.local_id)
128
129
&& let Some(&(level, src)) = map.get(&id)
129
130
{
130
131
return (Some(level), src);
@@ -145,7 +146,7 @@ impl ShallowLintLevelMap {
145
146
}
146
147
}
147
148
148
- ( None , LintLevelSource :: Default )
149
+ (None, LintLevelSource::Default)*/
149
150
}
150
151
151
152
/// Fetch and return the user-visible lint level for the given lint at the given HirId.
@@ -166,8 +167,9 @@ impl ShallowLintLevelMap {
166
167
167
168
impl TyCtxt < ' _ > {
168
169
/// Fetch and return the user-visible lint level for the given lint at the given HirId.
169
- pub fn lint_level_at_node ( self , lint : & ' static Lint , id : HirId ) -> ( Level , LintLevelSource ) {
170
- self . shallow_lint_levels_on ( id. owner ) . lint_level_id_at_node ( self , LintId :: of ( lint) , id)
170
+ pub fn lint_level_at_node ( self , _lint : & ' static Lint , _id : HirId ) -> ( Level , LintLevelSource ) {
171
+ return ( Level :: Allow , LintLevelSource :: Default )
172
+ //self.shallow_lint_levels_on(id.owner).lint_level_id_at_node(self, LintId::of(lint), id)
171
173
}
172
174
}
173
175
0 commit comments