Use dyn Module instead of impl Module where possible

This commit is contained in:
bjorn3 2024-06-28 11:21:42 +00:00
parent cc05efe29e
commit e97cebb2b1
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
use crate::prelude::*;
/// 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 };
codegen_inner(
module,
@ -23,7 +23,7 @@ pub(crate) fn codegen(tcx: TyCtxt<'_>, module: &mut impl Module) -> bool {
}
fn codegen_inner(
module: &mut impl Module,
module: &mut dyn Module,
kind: AllocatorKind,
alloc_error_handler_kind: AllocatorKind,
oom_strategy: OomStrategy,

View File

@ -11,7 +11,7 @@
/// users main function.
pub(crate) fn maybe_create_entry_wrapper(
tcx: TyCtxt<'_>,
module: &mut impl Module,
module: &mut dyn Module,
is_jit: bool,
is_primary_cgu: bool,
) {
@ -39,7 +39,7 @@ pub(crate) fn maybe_create_entry_wrapper(
fn create_entry_fn(
tcx: TyCtxt<'_>,
m: &mut impl Module,
m: &mut dyn Module,
rust_main_def_id: DefId,
ignore_lang_start_wrapper: bool,
is_main_fn: bool,