Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 888137d

Browse files
jeremystuckiantoyo
authored andcommitted
rustc: Remove needless lifetimes
1 parent c2e83dc commit 888137d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub fn linkage_to_gcc(linkage: Linkage) -> FunctionType {
6363
}
6464
}
6565

66-
pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_128bit_integers: bool) -> (ModuleCodegen<GccContext>, u64) {
66+
pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol, supports_128bit_integers: bool) -> (ModuleCodegen<GccContext>, u64) {
6767
let prof_timer = tcx.prof.generic_activity("codegen_module");
6868
let start_time = Instant::now();
6969

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn bytes_in_context<'gcc, 'tcx>(cx: &CodegenCx<'gcc, 'tcx>, bytes: &[u8]) ->
4444
context.new_array_constructor(None, typ, &elements)
4545
}
4646

47-
pub fn type_is_pointer<'gcc>(typ: Type<'gcc>) -> bool {
47+
pub fn type_is_pointer(typ: Type) -> bool {
4848
typ.get_pointee().is_some()
4949
}
5050

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl ExtraBackendMethods for GccCodegenBackend {
163163
mods
164164
}
165165

166-
fn compile_codegen_unit<'tcx>(&self, tcx: TyCtxt<'tcx>, cgu_name: Symbol) -> (ModuleCodegen<Self::Module>, u64) {
166+
fn compile_codegen_unit(&self, tcx: TyCtxt<'_>, cgu_name: Symbol) -> (ModuleCodegen<Self::Module>, u64) {
167167
base::compile_codegen_unit(tcx, cgu_name, *self.supports_128bit_integers.lock().expect("lock"))
168168
}
169169

0 commit comments

Comments
 (0)