mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 07:17:50 +03:00
Elide lifetimes
This commit is contained in:
parent
937e042c8f
commit
3a3ee4dedf
@ -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> {
|
||||
|
@ -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> {
|
||||
|
@ -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>,
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user