File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -203,10 +203,6 @@ impl LintStore {
203
203
}
204
204
}
205
205
206
- pub fn future_incompatible ( & self , id : LintId ) -> Option < FutureIncompatibleInfo > {
207
- id. lint . future_incompatible
208
- }
209
-
210
206
pub fn register_group_alias (
211
207
& mut self ,
212
208
lint_name : & ' static str ,
Original file line number Diff line number Diff line change @@ -672,9 +672,8 @@ pub fn struct_lint_level<'a>(sess: &'a Session,
672
672
} ;
673
673
674
674
// Check for future incompatibility lints and issue a stronger warning.
675
- let lints = sess. lint_store . borrow ( ) ;
676
675
let lint_id = LintId :: of ( lint) ;
677
- let future_incompatible = lints . future_incompatible ( lint_id ) ;
676
+ let future_incompatible = lint . future_incompatible ;
678
677
679
678
// If this code originates in a foreign macro, aka something that this crate
680
679
// did not itself author, then it's likely that there's nothing this crate
You can’t perform that action at this time.
0 commit comments