diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 11:15:13 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 16:06:22 +1100 |
| commit | f6aa418c9f616ae898d01082f8fe324927295d9c (patch) | |
| tree | 555aa9010c2e7a5721413bc0c6da3301280c588b /compiler/rustc_errors/src/json | |
| parent | d58e372853a9e07a50f409c1e6f0fe8fe2f7c3ff (diff) | |
| download | rust-f6aa418c9f616ae898d01082f8fe324927295d9c.tar.gz rust-f6aa418c9f616ae898d01082f8fe324927295d9c.zip | |
Rename many `DiagCtxt` and `EarlyDiagCtxt` locals.
Diffstat (limited to 'compiler/rustc_errors/src/json')
| -rw-r--r-- | compiler/rustc_errors/src/json/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/json/tests.rs b/compiler/rustc_errors/src/json/tests.rs index 5ca7b78d33a..303de0a93f6 100644 --- a/compiler/rustc_errors/src/json/tests.rs +++ b/compiler/rustc_errors/src/json/tests.rs @@ -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 = DiagCtxt::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(); |
