@@ -4,7 +4,7 @@ use std::sync::Arc;
44
55use rustc_ast:: { LitKind , MetaItemKind , token} ;
66use rustc_codegen_ssa:: traits:: CodegenBackend ;
7- use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
7+ use rustc_data_structures:: fx:: FxHashSet ;
88use rustc_data_structures:: jobserver:: { self , Proxy } ;
99use rustc_errors:: { DiagCtxtHandle , ErrorGuaranteed } ;
1010use rustc_lint:: LintStore ;
@@ -18,7 +18,7 @@ use rustc_parse::parser::attr::AllowLeadingUnsafe;
1818use rustc_query_impl:: print_query_stack;
1919use rustc_session:: config:: { self , Cfg , CheckCfg , ExpectedValues , Input , OutFileName } ;
2020use rustc_session:: parse:: ParseSess ;
21- use rustc_session:: { CompilerIO , EarlyDiagCtxt , Session , lint } ;
21+ use rustc_session:: { CompilerIO , EarlyDiagCtxt , Session } ;
2222use rustc_span:: source_map:: { FileLoader , RealFileLoader , SourceMapInputs } ;
2323use rustc_span:: { FileName , sym} ;
2424use tracing:: trace;
@@ -330,8 +330,6 @@ pub struct Config {
330330 /// running rustc without having to save". (See #102759.)
331331 pub file_loader : Option < Box < dyn FileLoader + Send + Sync > > ,
332332
333- pub lint_caps : FxHashMap < lint:: LintId , lint:: Level > ,
334-
335333 /// This is a callback from the driver that is called when [`ParseSess`] is created.
336334 pub psess_created : Option < Box < dyn FnOnce ( & mut ParseSess ) + Send > > ,
337335
@@ -427,7 +425,6 @@ pub fn run_compiler<R: Send>(config: Config, f: impl FnOnce(&Compiler) -> R + Se
427425 output_file : config. output_file ,
428426 temps_dir,
429427 } ,
430- config. lint_caps ,
431428 target,
432429 util:: rustc_version_str ( ) . unwrap_or ( "unknown" ) ,
433430 config. ice_file ,
0 commit comments