@@ -9,12 +9,11 @@ extern crate rustc_interface;
9
9
extern crate rustc_session;
10
10
extern crate rustc_span;
11
11
12
- use std:: { path, process, str} ;
12
+ use std:: { path, process, str, sync :: Arc } ;
13
13
14
14
use rustc_errors:: registry;
15
- use rustc_hash:: { FxHashMap , FxHashSet } ;
16
- use rustc_session:: config:: { self , CheckCfg } ;
17
- use rustc_span:: source_map;
15
+ use rustc_hash:: FxHashMap ;
16
+ use rustc_session:: config;
18
17
19
18
fn main ( ) {
20
19
let out = process:: Command :: new ( "rustc" )
@@ -30,10 +29,10 @@ fn main() {
30
29
..config:: Options :: default ( )
31
30
} ,
32
31
// cfg! configuration in addition to the default ones
33
- crate_cfg : FxHashSet :: default ( ) , // FxHashSet<(String, Option<String>)>
34
- crate_check_cfg : CheckCfg :: default ( ) , // CheckCfg
32
+ crate_cfg : Vec :: new ( ) , // FxHashSet<(String, Option<String>)>
33
+ crate_check_cfg : Vec :: new ( ) , // CheckCfg
35
34
input : config:: Input :: Str {
36
- name : source_map :: FileName :: Custom ( "main.rs" . into ( ) ) ,
35
+ name : rustc_span :: FileName :: Custom ( "main.rs" . into ( ) ) ,
37
36
input : r#"
38
37
static HELLO: &str = "Hello, world!";
39
38
fn main() {
@@ -61,10 +60,12 @@ fn main() {
61
60
// The second parameter is local providers and the third parameter is external providers.
62
61
override_queries : None , // Option<fn(&Session, &mut ty::query::Providers<'_>, &mut ty::query::Providers<'_>)>
63
62
// Registry of diagnostics codes.
64
- registry : registry:: Registry :: new ( & rustc_error_codes:: DIAGNOSTICS ) ,
63
+ registry : registry:: Registry :: new ( rustc_error_codes:: DIAGNOSTICS ) ,
65
64
make_codegen_backend : None ,
66
65
expanded_args : Vec :: new ( ) ,
67
66
ice_file : None ,
67
+ hash_untracked_state : None ,
68
+ using_internal_features : Arc :: default ( ) ,
68
69
} ;
69
70
rustc_interface:: run_compiler ( config, |compiler| {
70
71
compiler. enter ( |queries| {
0 commit comments