diff options
| author | memoryruins <memoryruinsmusic@gmail.com> | 2018-08-10 06:31:10 -0400 |
|---|---|---|
| committer | memoryruins <memoryruinsmusic@gmail.com> | 2018-08-10 06:31:10 -0400 |
| commit | 085535bbe1da2350fb1c58907bf63df446e03dff (patch) | |
| tree | d556590face9c42f93eb770855788ee1781895e1 | |
| parent | 46b818e276a83b50f6f68f9f54995e4f5a474f88 (diff) | |
| download | rust-085535bbe1da2350fb1c58907bf63df446e03dff.tar.gz rust-085535bbe1da2350fb1c58907bf63df446e03dff.zip | |
[nll] librustc_codegen_llvm: change Child signature to fix error pointed out by nll
As explained by eddyb in #53221, "An &ArchiveChild doesn't point into the archive itself, it points to an owned object that itself points to the archive, and LLVMRustArchiveMemberNew copies the ArchiveChild (whereas the current signature suggests it keeps the &ArchiveChild)."
| -rw-r--r-- | src/librustc_codegen_llvm/llvm/ffi.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/llvm/ffi.rs b/src/librustc_codegen_llvm/llvm/ffi.rs index a894f8e2fdb..68a21a53707 100644 --- a/src/librustc_codegen_llvm/llvm/ffi.rs +++ b/src/librustc_codegen_llvm/llvm/ffi.rs @@ -1564,7 +1564,7 @@ extern "C" { -> LLVMRustResult; pub fn LLVMRustArchiveMemberNew(Filename: *const c_char, Name: *const c_char, - Child: Option<&'a ArchiveChild>) + Child: Option<&ArchiveChild<'a>>) -> &'a mut RustArchiveMember<'a>; pub fn LLVMRustArchiveMemberFree(Member: &'a mut RustArchiveMember<'a>); |
