about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/tests.rs
diff options
context:
space:
mode:
authornils <48135649+Nilstrieb@users.noreply.github.com>2022-11-15 14:24:33 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-12-10 11:02:41 +0100
commit2f9f097cb8b6c27a7e0d7a916e6911fc1f5ecd81 (patch)
tree3f5b890f89761f43f7d3071718491dcf72c4d285 /compiler/rustc_expand/src/tests.rs
parenta000811405e6a3ca9b0b129c1177e78564e09666 (diff)
downloadrust-2f9f097cb8b6c27a7e0d7a916e6911fc1f5ecd81.tar.gz
rust-2f9f097cb8b6c27a7e0d7a916e6911fc1f5ecd81.zip
Migrate parts of `rustc_expand` to session diagnostics
This migrates everything but the `mbe` and `proc_macro` modules. It also
contains a few cleanups and drive-by/accidental diagnostic improvements
which can be seen in the diff for the UI tests.
Diffstat (limited to 'compiler/rustc_expand/src/tests.rs')
-rw-r--r--compiler/rustc_expand/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_expand/src/tests.rs b/compiler/rustc_expand/src/tests.rs
index 539b04535a0..8f3bea29ffd 100644
--- a/compiler/rustc_expand/src/tests.rs
+++ b/compiler/rustc_expand/src/tests.rs
@@ -154,6 +154,7 @@ fn test_harness(file_text: &str, span_labels: Vec<SpanLabel>, expected_output: &
             false,
         );
         let handler = Handler::with_emitter(true, None, Box::new(emitter));
+        #[allow(rustc::untranslatable_diagnostic)]
         handler.span_err(msp, "foo");
 
         assert!(