44
55extern crate rustc_driver;
66extern crate rustc_error_codes;
7- extern crate rustc_errors;
87extern crate rustc_hash;
98extern crate rustc_hir;
109extern crate rustc_interface;
1110extern crate rustc_session;
1211extern crate rustc_span;
1312
14- use rustc_errors:: registry;
1513use rustc_hash:: FxHashMap ;
1614use rustc_session:: config;
1715
@@ -30,12 +28,11 @@ fn main() {
3028 println!("{HELLO}");
3129}
3230"#
33- . into ( ) ,
31+ . into ( ) ,
3432 } ,
35- output_dir : None , // Option<PathBuf>
36- output_file : None , // Option<PathBuf>
37- file_loader : None , // Option<Box<dyn FileLoader + Send + Sync>>
38- locale_resources : rustc_driver:: DEFAULT_LOCALE_RESOURCES . to_owned ( ) ,
33+ output_dir : None , // Option<PathBuf>
34+ output_file : None , // Option<PathBuf>
35+ file_loader : None , // Option<Box<dyn FileLoader + Send + Sync>>
3936 lint_caps : FxHashMap :: default ( ) , // FxHashMap<lint::LintId, lint::Level>
4037 // This is a callback from the driver that is called when [`ParseSess`] is created.
4138 psess_created : None , //Option<Box<dyn FnOnce(&mut ParseSess) + Send>>
@@ -50,8 +47,6 @@ fn main() {
5047 //
5148 // The second parameter is local providers and the third parameter is external providers.
5249 override_queries : None , // Option<fn(&Session, &mut ty::query::Providers<'_>, &mut ty::query::Providers<'_>)>
53- // Registry of diagnostics codes.
54- registry : registry:: Registry :: new ( rustc_errors:: codes:: DIAGNOSTICS ) ,
5550 make_codegen_backend : None ,
5651 expanded_args : Vec :: new ( ) ,
5752 ice_file : None ,
@@ -77,4 +72,4 @@ fn main() {
7772 }
7873 } ) ;
7974 } ) ;
80- }
75+ }
0 commit comments