diff options
| author | The Miri Conjob Bot <miri@cron.bot> | 2023-12-19 05:00:53 +0000 |
|---|---|---|
| committer | The Miri Conjob Bot <miri@cron.bot> | 2023-12-19 05:00:53 +0000 |
| commit | 0f70ced1280124e2078ec5838ac173c13f400e2e (patch) | |
| tree | 5abaccd88ccb2f5852113cbbb76418387134d508 /compiler/rustc_errors/src/json | |
| parent | 245f2ad429011498b13d090438a605fba0655c58 (diff) | |
| parent | df5b604945276994ad662bd0fd34face0ad609eb (diff) | |
| download | rust-0f70ced1280124e2078ec5838ac173c13f400e2e.tar.gz rust-0f70ced1280124e2078ec5838ac173c13f400e2e.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_errors/src/json')
| -rw-r--r-- | compiler/rustc_errors/src/json/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_errors/src/json/tests.rs b/compiler/rustc_errors/src/json/tests.rs index 5f9e821a48c..303de0a93f6 100644 --- a/compiler/rustc_errors/src/json/tests.rs +++ b/compiler/rustc_errors/src/json/tests.rs @@ -1,7 +1,7 @@ use super::*; use crate::emitter::ColorConfig; -use crate::Handler; +use crate::DiagCtxt; use rustc_span::BytePos; use std::str; @@ -61,8 +61,8 @@ fn test_positions(code: &str, span: (u32, u32), expected_output: SpanTestData) { ); let span = Span::with_root_ctxt(BytePos(span.0), BytePos(span.1)); - let handler = Handler::with_emitter(Box::new(je)); - handler.span_err(span, "foo"); + let dcx = DiagCtxt::with_emitter(Box::new(je)); + dcx.span_err(span, "foo"); let bytes = output.lock().unwrap(); let actual_output = str::from_utf8(&bytes).unwrap(); |
