Elide lifetimes

This commit is contained in:
Ayaz Hafiz 2023-07-12 16:10:59 -05:00
parent 937e042c8f
commit 3a3ee4dedf
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58
3 changed files with 9 additions and 9 deletions

View File

@ -5620,8 +5620,8 @@ pub fn verify_fn(fn_val: FunctionValue<'_>) {
}
}
pub(crate) fn function_value_by_func_spec<'a, 'ctx>(
env: &Env<'a, 'ctx, '_>,
pub(crate) fn function_value_by_func_spec<'ctx>(
env: &Env<'_, 'ctx, '_>,
func_spec: FuncBorrowSpec,
symbol: Symbol,
) -> FunctionValue<'ctx> {
@ -5631,8 +5631,8 @@ pub(crate) fn function_value_by_func_spec<'a, 'ctx>(
function_value_by_name_help(env, symbol, fn_name)
}
fn function_value_by_name_help<'a, 'ctx>(
env: &Env<'a, 'ctx, '_>,
fn function_value_by_name_help<'ctx>(
env: &Env<'_, 'ctx, '_>,
symbol: Symbol,
fn_name: &str,
) -> FunctionValue<'ctx> {

View File

@ -30,7 +30,7 @@ fn refcounter_type<'ctx>(env: &Env<'_, 'ctx, '_>) -> PointerType<'ctx> {
/// refcounter_dec: (void* -> void) *,
/// }
/// ```
pub fn basic_type<'a, 'ctx>(env: &Env<'a, 'ctx, '_>) -> StructType<'ctx> {
pub fn basic_type<'ctx>(env: &Env<'_, 'ctx, '_>) -> StructType<'ctx> {
let opaque_ptr_ty = opaque_ptr_type(env);
let refcounter_ptr_ty = refcounter_type(env);
@ -58,8 +58,8 @@ fn bitcast_to_opaque_ptr<'ctx>(
.into_pointer_value()
}
pub fn build<'a, 'ctx>(
env: &Env<'a, 'ctx, '_>,
pub fn build<'ctx>(
env: &Env<'_, 'ctx, '_>,
value: Option<PointerValue<'ctx>>,
callee: PointerValue<'ctx>,
) -> StructValue<'ctx> {

View File

@ -428,8 +428,8 @@ fn modify_refcount_erased<'a, 'ctx>(
function
}
fn modify_refcount_erased_help<'a, 'ctx>(
env: &Env<'a, 'ctx, '_>,
fn modify_refcount_erased_help<'ctx>(
env: &Env<'_, 'ctx, '_>,
mode: Mode,
fn_val: FunctionValue<'ctx>,
) {