Remove needless lifetimes

This commit is contained in:
Jeremy Stucki 2019-06-21 20:27:44 +02:00 committed by Jeremy Stucki
parent d50a3a7b86
commit ec711767a7
No known key found for this signature in database
GPG key ID: 8F548A5A2ED13F58
29 changed files with 99 additions and 99 deletions

View file

@ -123,8 +123,8 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'tcx>, cgu_name: InternedString) {
submit_codegened_module_to_llvm(&LlvmCodegenBackend(()), tcx, module, cost);
fn module_codegen<'tcx>(
tcx: TyCtxt<'tcx>,
fn module_codegen(
tcx: TyCtxt<'_>,
cgu_name: InternedString,
) -> ModuleCodegen<ModuleLlvm> {
let cgu = tcx.codegen_unit(cgu_name);

View file

@ -144,7 +144,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
}
}
fn build_sibling_block<'b>(&self, name: &'b str) -> Self {
fn build_sibling_block(&self, name: &str) -> Self {
Builder::new_block(self.cx, self.llfn(), name)
}

View file

@ -124,7 +124,7 @@ impl ExtraBackendMethods for LlvmCodegenBackend {
) {
unsafe { allocator::codegen(tcx, mods, kind) }
}
fn compile_codegen_unit<'tcx>(&self, tcx: TyCtxt<'tcx>, cgu_name: InternedString) {
fn compile_codegen_unit(&self, tcx: TyCtxt<'_>, cgu_name: InternedString) {
base::compile_codegen_unit(tcx, cgu_name);
}
fn target_machine_factory(