diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-02 15:12:33 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-02-02 16:06:43 +0000 |
| commit | aa2b870bb59a1eb6af3ee35567291a0f8c8a2828 (patch) | |
| tree | f66ce8f867caabef3517cefd4c33cddbd4d77824 /src | |
| parent | d237378cd164e1bf2fd6f91271abd49c8573ded7 (diff) | |
Slightly simplify DiagCtxt::make_silent
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rustfmt/src/parse/session.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/parse/session.rs b/src/tools/rustfmt/src/parse/session.rs index 63cc8794cea..d1a2974a617 100644 --- a/src/tools/rustfmt/src/parse/session.rs +++ b/src/tools/rustfmt/src/parse/session.rs @@ -121,7 +121,7 @@ fn default_dcx( let emitter: Box<DynEmitter> = if !show_parse_errors { Box::new(SilentEmitter { fallback_bundle, - fatal_dcx: DiagCtxt::new(emitter), + fatal_emitter: emitter, fatal_note: None, emit_fatal_diagnostic: false, }) |
