Remove in_band_lifetimes
from rustc_codegen_llvm
See #91867 for more information.
This commit is contained in:
parent
1d01550f7e
commit
4937a55dfb
28 changed files with 429 additions and 392 deletions
|
@ -363,7 +363,7 @@ fn fat_lto(
|
|||
|
||||
crate struct Linker<'a>(&'a mut llvm::Linker<'a>);
|
||||
|
||||
impl Linker<'a> {
|
||||
impl<'a> Linker<'a> {
|
||||
crate fn new(llmod: &'a llvm::Module) -> Self {
|
||||
unsafe { Linker(llvm::LLVMRustLinkerNew(llmod)) }
|
||||
}
|
||||
|
@ -383,7 +383,7 @@ impl Linker<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl Drop for Linker<'a> {
|
||||
impl Drop for Linker<'_> {
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
llvm::LLVMRustLinkerFree(&mut *(self.0 as *mut _));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue