about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2022-10-17 14:11:26 +0100
committerDavid Wood <david.wood@huawei.com>2023-02-22 09:15:54 +0000
commit93fdcfa554af34c01970db8ace1e724214913f8f (patch)
tree56df8ec9c7a4a423a18e7fd69cf5188c30d17236
parent8996171e8891d8b1f715a6e39b28753860113e56 (diff)
downloadrust-93fdcfa554af34c01970db8ace1e724214913f8f.tar.gz
rust-93fdcfa554af34c01970db8ace1e724214913f8f.zip
various: translation resources from cg backend
Extend `CodegenBackend` trait with a function returning the translation
resources from the codegen backend, which can be added to the complete
list of resources provided to the emitter.

Signed-off-by: David Wood <david.wood@huawei.com>
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c7fe382bac4..5ba568bfd6e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -172,6 +172,11 @@ pub struct CraneliftCodegenBackend {
 }
 
 impl CodegenBackend for CraneliftCodegenBackend {
+    fn locale_resource(&self) -> &'static str {
+        // FIXME(rust-lang/rust#100717) - cranelift codegen backend is not yet translated
+        ""
+    }
+
     fn init(&self, sess: &Session) {
         use rustc_session::config::Lto;
         match sess.lto() {