Skip to content

Commit e5903b6

Browse files
iSwapnaestebank
andauthored
Update compiler/rustc_codegen_ssa/src/mir/mod.rs
Co-authored-by: Esteban Kuber <[email protected]>
1 parent 9fa661d commit e5903b6

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_ssa/src/mir

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
238238
let layout = start_bx.layout_of(fx.monomorphize(decl.ty));
239239
assert!(!layout.ty.has_erasable_regions());
240240

241-
if layout.size.bytes() >= MIN_DANGEROUS_SIZE {
241+
if layout.size.bytes() >= MIN_DANGEROUS_ALLOC_SIZE {
242242
let (size_quantity, size_unit) = human_readable_bytes(layout.size.bytes());
243243
cx.tcx().node_span_lint(
244244
lint::builtin::DANGEROUS_STACK_ALLOCATION,

0 commit comments

Comments
 (0)