Skip to content

Commit f02ed7b

Browse files
committed
Fix alloc_error_handler signature mismatch
1 parent d9617c8 commit f02ed7b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • compiler/rustc_codegen_ssa/src

compiler/rustc_codegen_ssa/src/base.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ use std::time::{Duration, Instant};
66
use itertools::Itertools;
77
use rustc_abi::FIRST_VARIANT;
88
use rustc_ast::expand::allocator::{
9-
ALLOC_ERROR_HANDLER, ALLOCATOR_METHODS, AllocatorKind, AllocatorMethod, AllocatorTy,
9+
ALLOC_ERROR_HANDLER, ALLOCATOR_METHODS, AllocatorKind, AllocatorMethod, AllocatorMethodInput,
10+
AllocatorTy,
1011
};
1112
use rustc_data_structures::fx::{FxHashMap, FxIndexSet};
1213
use rustc_data_structures::profiling::{get_resident_set_size, print_time_passes_entry};
@@ -671,7 +672,7 @@ pub fn allocator_shim_contents(tcx: TyCtxt<'_>, kind: AllocatorKind) -> Vec<Allo
671672
methods.push(AllocatorMethod {
672673
name: ALLOC_ERROR_HANDLER,
673674
special: None,
674-
inputs: &[],
675+
inputs: &[AllocatorMethodInput { name: "layout", ty: AllocatorTy::Layout }],
675676
output: AllocatorTy::Never,
676677
});
677678
}

0 commit comments

Comments
 (0)