diff options
| author | Lain Yang <fsf@live.com> | 2022-01-07 10:34:06 +0800 |
|---|---|---|
| committer | Lain Yang <fsf@live.com> | 2022-01-07 10:47:40 +0800 |
| commit | 11f180f42164733cdfd65a705ee988206e9e2a5b (patch) | |
| tree | 4d774e22f71e39314f00b0ba894ae943c0caf748 /compiler/rustc_codegen_ssa/src/back | |
| parent | 579e8bce7df948c786ab89f2a5d4b949cf44a44d (diff) | |
| download | rust-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.rs | 2 |
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, |
