diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-01 19:18:25 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-03 09:02:50 +1100 |
| commit | 8ba25d0989f8d96cbcb4365fc61b469575e22d63 (patch) | |
| tree | b6bcf302daeef503c4688dd61c5a35eeae469e3f /compiler/rustc_session | |
| parent | a9a2e1565abbeae741d6d715224194caf500099b (diff) | |
| download | rust-8ba25d0989f8d96cbcb4365fc61b469575e22d63.tar.gz rust-8ba25d0989f8d96cbcb4365fc61b469575e22d63.zip | |
`SilentEmitter::fatal_note` doesn't need to be optional.
Diffstat (limited to 'compiler/rustc_session')
| -rw-r--r-- | compiler/rustc_session/src/parse.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs index 1cfaa49401d..8adb0cbcc9d 100644 --- a/compiler/rustc_session/src/parse.rs +++ b/compiler/rustc_session/src/parse.rs @@ -258,7 +258,7 @@ impl ParseSess { } } - pub fn with_silent_emitter(fatal_note: Option<String>) -> Self { + pub fn with_silent_emitter(fatal_note: String) -> Self { let fallback_bundle = fallback_fluent_bundle(Vec::new(), false); let sm = Lrc::new(SourceMap::new(FilePathMapping::empty())); let fatal_dcx = DiagCtxt::with_tty_emitter(None, fallback_bundle).disable_warnings(); |
