about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorLain Yang <fsf@live.com>2022-01-07 10:34:06 +0800
committerLain Yang <fsf@live.com>2022-01-07 10:47:40 +0800
commit11f180f42164733cdfd65a705ee988206e9e2a5b (patch)
tree4d774e22f71e39314f00b0ba894ae943c0caf748 /compiler/rustc_codegen_ssa/src/back
parent579e8bce7df948c786ab89f2a5d4b949cf44a44d (diff)
downloadrust-11f180f42164733cdfd65a705ee988206e9e2a5b.tar.gz
rust-11f180f42164733cdfd65a705ee988206e9e2a5b.zip
rustc_codegen_ssa: set static lifetime for object::write::Object
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/metadata.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/metadata.rs b/compiler/rustc_codegen_ssa/src/back/metadata.rs
index 9862c3fb16e..6849533abc0 100644
--- a/compiler/rustc_codegen_ssa/src/back/metadata.rs
+++ b/compiler/rustc_codegen_ssa/src/back/metadata.rs
@@ -95,7 +95,7 @@ fn search_for_metadata<'a>(
         .map_err(|e| format!("failed to read {} section in '{}': {}", section, path.display(), e))
 }
 
-fn create_object_file(sess: &Session) -> Option<write::Object> {
+fn create_object_file(sess: &Session) -> Option<write::Object<'static>> {
     let endianness = match sess.target.options.endian {
         Endian::Little => Endianness::Little,
         Endian::Big => Endianness::Big,