Skip to content

Commit

Permalink
rustc_codegen_ssa: set static lifetime for object::write::Object
Browse files Browse the repository at this point in the history
  • Loading branch information
Fearyncess committed Jan 7, 2022
1 parent 579e8bc commit 11f180f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/src/back/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 11f180f

Please sign in to comment.