diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-30 14:01:33 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-30 14:12:51 +1100 |
| commit | 8e4ac980fd775d311bc63642c8d6b5739aa6f34c (patch) | |
| tree | 54231b347b380fe1ae9ae675b9920b17e3d9e843 /compiler/rustc_interface/src/util.rs | |
| parent | bfcff7933e9be5c9ff31854896e9582b84b19d36 (diff) | |
| download | rust-8e4ac980fd775d311bc63642c8d6b5739aa6f34c.tar.gz rust-8e4ac980fd775d311bc63642c8d6b5739aa6f34c.zip | |
Change cfg parsers to produce symbols instead of strings.
Diffstat (limited to 'compiler/rustc_interface/src/util.rs')
| -rw-r--r-- | compiler/rustc_interface/src/util.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs index 4d0be65697a..a974bdd3c0e 100644 --- a/compiler/rustc_interface/src/util.rs +++ b/compiler/rustc_interface/src/util.rs @@ -59,8 +59,8 @@ pub fn add_configuration( pub fn create_session( handler: &EarlyErrorHandler, sopts: config::Options, - cfg: Cfg<String>, - check_cfg: CheckCfg<String>, + cfg: Cfg<Symbol>, + mut check_cfg: CheckCfg<Symbol>, locale_resources: &'static [&'static str], file_loader: Option<Box<dyn FileLoader + Send + Sync + 'static>>, io: CompilerIO, @@ -123,7 +123,6 @@ pub fn create_session( let mut cfg = config::build_configuration(&sess, cfg); add_configuration(&mut cfg, &mut sess, &*codegen_backend); - let mut check_cfg = check_cfg.intern(); check_cfg.fill_well_known(&sess.target); // These configs use symbols, rather than strings. |
