about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorEllis Hoag <ellis.sparky.hoag@gmail.com>2022-08-27 15:21:46 -0700
committerEllis Hoag <ellis.sparky.hoag@gmail.com>2022-09-24 10:24:48 -0700
commit1ce482adda7f5b18ff6b107351565e31056fd8f3 (patch)
treeb34c9216ed1dbff15fbbc0aff6d08c68f8f1755b /compiler/rustc_codegen_gcc
parent5e0c53a679bb81dea64cb498e7ea2626d8acc3c8 (diff)
downloadrust-1ce482adda7f5b18ff6b107351565e31056fd8f3.tar.gz
rust-1ce482adda7f5b18ff6b107351565e31056fd8f3.zip
Lint against untranslatable diagnostics in rustc_codegen_gcc
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/src/lib.rs b/compiler/rustc_codegen_gcc/src/lib.rs
index 03f41d197b8..007d61ed51d 100644
--- a/compiler/rustc_codegen_gcc/src/lib.rs
+++ b/compiler/rustc_codegen_gcc/src/lib.rs
@@ -18,6 +18,8 @@
 #![recursion_limit="256"]
 #![warn(rust_2018_idioms)]
 #![warn(unused_lifetimes)]
+#![deny(rustc::untranslatable_diagnostic)]
+#![deny(rustc::diagnostic_outside_of_impl)]
 
 extern crate rustc_apfloat;
 extern crate rustc_ast;