summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-29 21:19:50 +0200
committerGitHub <noreply@github.com>2023-03-29 21:19:50 +0200
commit5937ec1915c09f6891825f393bc6d0e592a1d511 (patch)
tree1eb8c5b858e6e010bc80339458c06bac6c06e0fb /compiler/rustc_codegen_llvm
parentc62bb46fb32d00b448105590d0f9bd5782da7f71 (diff)
parent979c265a5d54a3a267563153859f2921db717b1d (diff)
downloadrust-5937ec1915c09f6891825f393bc6d0e592a1d511.tar.gz
rust-5937ec1915c09f6891825f393bc6d0e592a1d511.zip
Rollup merge of #109700 - clubby789:tidy-fluent-escape, r=compiler-errors
Lint against escape sequences in Fluent files

Fixes #109686 by checking for `\n`, `\"` and `\'` in Fluent files. It might be useful to have a way to opt out of this check, but all messages with violations currently do seem to be incorrect.
Diffstat (limited to 'compiler/rustc_codegen_llvm')
-rw-r--r--compiler/rustc_codegen_llvm/messages.ftl3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/messages.ftl b/compiler/rustc_codegen_llvm/messages.ftl
index e5df417370b..b6d7484bcce 100644
--- a/compiler/rustc_codegen_llvm/messages.ftl
+++ b/compiler/rustc_codegen_llvm/messages.ftl
@@ -27,7 +27,8 @@ codegen_llvm_error_calling_dlltool =
     Error calling dlltool: {$error}
 
 codegen_llvm_dlltool_fail_import_library =
-    Dlltool could not create import library: {$stdout}\n{$stderr}
+    Dlltool could not create import library: {$stdout}
+    {$stderr}
 
 codegen_llvm_target_feature_disable_or_enable =
     the target features {$features} must all be either enabled or disabled together