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 {
203203 }
204204 }
205205
206- pub fn future_incompatible ( & self , id : LintId ) -> Option < FutureIncompatibleInfo > {
207- id. lint . future_incompatible
208- }
209-
210206 pub fn register_group_alias (
211207 & mut self ,
212208 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,
672672 } ;
673673
674674 // Check for future incompatibility lints and issue a stronger warning.
675- let lints = sess. lint_store . borrow ( ) ;
676675 let lint_id = LintId :: of ( lint) ;
677- let future_incompatible = lints . future_incompatible ( lint_id ) ;
676+ let future_incompatible = lint . future_incompatible ;
678677
679678 // If this code originates in a foreign macro, aka something that this crate
680679 // 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