diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2025-06-23 12:17:31 +0300 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2025-06-23 12:17:31 +0300 |
| commit | 3c4a690d018bebe98cf5ebfdfbf4388d131121c9 (patch) | |
| tree | 8ba69fe791545d69bd1d6fd93318b8bc76449a18 /compiler/rustc_interface/src/interface.rs | |
| parent | 3db7cffd54008792421a801e80701465c8977abd (diff) | |
| parent | 1052ddda964811c25823aa7285595f7085392b36 (diff) | |
| download | rust-3c4a690d018bebe98cf5ebfdfbf4388d131121c9.tar.gz rust-3c4a690d018bebe98cf5ebfdfbf4388d131121c9.zip | |
Merge from rust-lang/rust
Diffstat (limited to 'compiler/rustc_interface/src/interface.rs')
| -rw-r--r-- | compiler/rustc_interface/src/interface.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_interface/src/interface.rs b/compiler/rustc_interface/src/interface.rs index e824e9d4aa9..d62bf7f85e0 100644 --- a/compiler/rustc_interface/src/interface.rs +++ b/compiler/rustc_interface/src/interface.rs @@ -52,10 +52,9 @@ pub struct Compiler { pub(crate) fn parse_cfg(dcx: DiagCtxtHandle<'_>, cfgs: Vec<String>) -> Cfg { cfgs.into_iter() .map(|s| { - let psess = ParseSess::with_silent_emitter( + let psess = ParseSess::with_fatal_emitter( vec![crate::DEFAULT_LOCALE_RESOURCE, rustc_parse::DEFAULT_LOCALE_RESOURCE], format!("this error occurred on the command line: `--cfg={s}`"), - true, ); let filename = FileName::cfg_spec_source_code(&s); @@ -116,10 +115,9 @@ pub(crate) fn parse_check_cfg(dcx: DiagCtxtHandle<'_>, specs: Vec<String>) -> Ch let mut check_cfg = CheckCfg { exhaustive_names, exhaustive_values, ..CheckCfg::default() }; for s in specs { - let psess = ParseSess::with_silent_emitter( + let psess = ParseSess::with_fatal_emitter( vec![crate::DEFAULT_LOCALE_RESOURCE, rustc_parse::DEFAULT_LOCALE_RESOURCE], format!("this error occurred on the command line: `--check-cfg={s}`"), - true, ); let filename = FileName::cfg_spec_source_code(&s); |
