about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2023-03-03 00:18:38 +0100
committerest31 <MTest31@outlook.com>2023-03-11 22:51:57 +0100
commit7e2ecb3cd84eae18e838624feeb2e5cf46b9cc57 (patch)
tree7860aa3f74b935678b7c44db119bb9e51035b351 /compiler/rustc_driver_impl
parent8a73f50d875840b8077b8ec080fa41881d7ce40d (diff)
downloadrust-7e2ecb3cd84eae18e838624feeb2e5cf46b9cc57.tar.gz
rust-7e2ecb3cd84eae18e838624feeb2e5cf46b9cc57.zip
Simplify message paths
This makes it easier to open the messages file while developing on features.

The commit was the result of automatted changes:

for p in compiler/rustc_*; do mv $p/locales/en-US.ftl $p/messages.ftl; rmdir $p/locales; done

for p in compiler/rustc_*; do sed -i "s#\.\./locales/en-US.ftl#../messages.ftl#" $p/src/lib.rs; done
Diffstat (limited to 'compiler/rustc_driver_impl')
-rw-r--r--compiler/rustc_driver_impl/messages.ftl (renamed from compiler/rustc_driver_impl/locales/en-US.ftl)0
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs2
2 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/locales/en-US.ftl b/compiler/rustc_driver_impl/messages.ftl
index f19b1ff6426..f19b1ff6426 100644
--- a/compiler/rustc_driver_impl/locales/en-US.ftl
+++ b/compiler/rustc_driver_impl/messages.ftl
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index e321a9847ba..555917c8b5e 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -64,7 +64,7 @@ use crate::session_diagnostics::{
     RLinkWrongFileType, RlinkNotAFile, RlinkUnableToRead,
 };
 
-fluent_messages! { "../locales/en-US.ftl" }
+fluent_messages! { "../messages.ftl" }
 
 pub static DEFAULT_LOCALE_RESOURCES: &[&str] = &[
     // tidy-alphabetical-start