Skip to content

Commit e97cebb

Browse files
committed
Use dyn Module instead of impl Module where possible
1 parent cc05efe commit e97cebb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/allocator.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use rustc_session::config::OomStrategy;
1111
use crate::prelude::*;
1212

1313
/// Returns whether an allocator shim was created
14-
pub(crate) fn codegen(tcx: TyCtxt<'_>, module: &mut impl Module) -> bool {
14+
pub(crate) fn codegen(tcx: TyCtxt<'_>, module: &mut dyn Module) -> bool {
1515
let Some(kind) = allocator_kind_for_codegen(tcx) else { return false };
1616
codegen_inner(
1717
module,
@@ -23,7 +23,7 @@ pub(crate) fn codegen(tcx: TyCtxt<'_>, module: &mut impl Module) -> bool {
2323
}
2424

2525
fn codegen_inner(
26-
module: &mut impl Module,
26+
module: &mut dyn Module,
2727
kind: AllocatorKind,
2828
alloc_error_handler_kind: AllocatorKind,
2929
oom_strategy: OomStrategy,

src/main_shim.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::prelude::*;
1111
/// users main function.
1212
pub(crate) fn maybe_create_entry_wrapper(
1313
tcx: TyCtxt<'_>,
14-
module: &mut impl Module,
14+
module: &mut dyn Module,
1515
is_jit: bool,
1616
is_primary_cgu: bool,
1717
) {
@@ -39,7 +39,7 @@ pub(crate) fn maybe_create_entry_wrapper(
3939

4040
fn create_entry_fn(
4141
tcx: TyCtxt<'_>,
42-
m: &mut impl Module,
42+
m: &mut dyn Module,
4343
rust_main_def_id: DefId,
4444
ignore_lang_start_wrapper: bool,
4545
is_main_fn: bool,

0 commit comments

Comments
 (0)