about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-29 11:50:32 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-29 16:30:12 +1100
commit880c1c585f1252a8b63b402b44def940cac6f134 (patch)
tree0063455d2ea929c39fe540c73f1ae1b5739ad5c4 /compiler/rustc_driver_impl/src
parentf9eef38e32f5e362006122d4a11d8e1f41e2f033 (diff)
downloadrust-880c1c585f1252a8b63b402b44def940cac6f134.tar.gz
rust-880c1c585f1252a8b63b402b44def940cac6f134.zip
Rename `DiagCtxt::with_emitter` as `DiagCtxt::new`.
Because it's now the only constructor.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index 692c059beb0..10188026a97 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -1388,7 +1388,7 @@ fn report_ice(
         rustc_errors::ColorConfig::Auto,
         fallback_bundle,
     ));
-    let dcx = rustc_errors::DiagCtxt::with_emitter(emitter);
+    let dcx = rustc_errors::DiagCtxt::new(emitter);
 
     // a .span_bug or .bug call has already printed what
     // it wants to print.