Skip to content

Commit 085535b

Browse files
committed
[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)."
1 parent 46b818e commit 085535b

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_codegen_llvm/llvm

1 file changed

+1
-1
lines changed

src/librustc_codegen_llvm/llvm/ffi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ extern "C" {
15641564
-> LLVMRustResult;
15651565
pub fn LLVMRustArchiveMemberNew(Filename: *const c_char,
15661566
Name: *const c_char,
1567-
Child: Option<&'a ArchiveChild>)
1567+
Child: Option<&ArchiveChild<'a>>)
15681568
-> &'a mut RustArchiveMember<'a>;
15691569
pub fn LLVMRustArchiveMemberFree(Member: &'a mut RustArchiveMember<'a>);
15701570

0 commit comments

Comments
 (0)