[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)."
This commit is contained in:
memoryruins 2018-08-10 06:31:10 -04:00
parent 46b818e276
commit 085535bbe1
1 changed files with 1 additions and 1 deletions

View File

@ -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>);