Skip to content

Commit 11f180f

Browse files
committed
rustc_codegen_ssa: set static lifetime for object::write::Object
1 parent 579e8bc commit 11f180f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/back/metadata.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn search_for_metadata<'a>(
9595
.map_err(|e| format!("failed to read {} section in '{}': {}", section, path.display(), e))
9696
}
9797

98-
fn create_object_file(sess: &Session) -> Option<write::Object> {
98+
fn create_object_file(sess: &Session) -> Option<write::Object<'static>> {
9999
let endianness = match sess.target.options.endian {
100100
Endian::Little => Endianness::Little,
101101
Endian::Big => Endianness::Big,

0 commit comments

Comments
 (0)