Remove in_band_lifetimes from rustc_codegen_llvm
See #91867 for more information.
This commit is contained in:
committed by
Matthew House
parent
1d01550f7e
commit
4937a55dfb
@@ -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 _));
|
||||
|
||||
Reference in New Issue
Block a user