Use dyn Module instead of impl Module where possible
This commit is contained in:
parent
cc05efe29e
commit
e97cebb2b1
@ -11,7 +11,7 @@
|
|||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
|
|
||||||
/// Returns whether an allocator shim was created
|
/// Returns whether an allocator shim was created
|
||||||
pub(crate) fn codegen(tcx: TyCtxt<'_>, module: &mut impl Module) -> bool {
|
pub(crate) fn codegen(tcx: TyCtxt<'_>, module: &mut dyn Module) -> bool {
|
||||||
let Some(kind) = allocator_kind_for_codegen(tcx) else { return false };
|
let Some(kind) = allocator_kind_for_codegen(tcx) else { return false };
|
||||||
codegen_inner(
|
codegen_inner(
|
||||||
module,
|
module,
|
||||||
@ -23,7 +23,7 @@ pub(crate) fn codegen(tcx: TyCtxt<'_>, module: &mut impl Module) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn codegen_inner(
|
fn codegen_inner(
|
||||||
module: &mut impl Module,
|
module: &mut dyn Module,
|
||||||
kind: AllocatorKind,
|
kind: AllocatorKind,
|
||||||
alloc_error_handler_kind: AllocatorKind,
|
alloc_error_handler_kind: AllocatorKind,
|
||||||
oom_strategy: OomStrategy,
|
oom_strategy: OomStrategy,
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/// users main function.
|
/// users main function.
|
||||||
pub(crate) fn maybe_create_entry_wrapper(
|
pub(crate) fn maybe_create_entry_wrapper(
|
||||||
tcx: TyCtxt<'_>,
|
tcx: TyCtxt<'_>,
|
||||||
module: &mut impl Module,
|
module: &mut dyn Module,
|
||||||
is_jit: bool,
|
is_jit: bool,
|
||||||
is_primary_cgu: bool,
|
is_primary_cgu: bool,
|
||||||
) {
|
) {
|
||||||
@ -39,7 +39,7 @@ pub(crate) fn maybe_create_entry_wrapper(
|
|||||||
|
|
||||||
fn create_entry_fn(
|
fn create_entry_fn(
|
||||||
tcx: TyCtxt<'_>,
|
tcx: TyCtxt<'_>,
|
||||||
m: &mut impl Module,
|
m: &mut dyn Module,
|
||||||
rust_main_def_id: DefId,
|
rust_main_def_id: DefId,
|
||||||
ignore_lang_start_wrapper: bool,
|
ignore_lang_start_wrapper: bool,
|
||||||
is_main_fn: bool,
|
is_main_fn: bool,
|
||||||
|
Loading…
Reference in New Issue
Block a user