@@ -34,7 +34,6 @@ pub struct Compiler {
3434 pub ( crate ) input_path : Option < PathBuf > ,
3535 pub ( crate ) output_dir : Option < PathBuf > ,
3636 pub ( crate ) output_file : Option < PathBuf > ,
37- pub ( crate ) crate_name : Option < String > ,
3837 pub ( crate ) register_lints : Option < Box < dyn Fn ( & Session , & mut LintStore ) + Send + Sync > > ,
3938 pub ( crate ) override_queries :
4039 Option < fn ( & Session , & mut ty:: query:: Providers , & mut ty:: query:: Providers ) > ,
@@ -140,7 +139,6 @@ pub struct Config {
140139 /// Set to capture stderr output during compiler execution
141140 pub stderr : Option < Arc < Mutex < Vec < u8 > > > > ,
142141
143- pub crate_name : Option < String > ,
144142 pub lint_caps : FxHashMap < lint:: LintId , lint:: Level > ,
145143
146144 /// This is a callback from the driver that is called when we're registering lints;
@@ -185,7 +183,6 @@ pub fn create_compiler_and_run<R>(config: Config, f: impl FnOnce(&Compiler) -> R
185183 input_path : config. input_path ,
186184 output_dir : config. output_dir ,
187185 output_file : config. output_file ,
188- crate_name : config. crate_name ,
189186 register_lints : config. register_lints ,
190187 override_queries : config. override_queries ,
191188 } ;
0 commit comments