Skip to content

Commit f36c7ee

Browse files
iSwapnaestebank
andcommitted
Update compiler/rustc_codegen_ssa/src/mir/mod.rs
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
1 parent 171beb3 commit f36c7ee

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
@@ -249,7 +249,7 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
249249
let layout = start_bx.layout_of(fx.monomorphize(decl.ty));
250250
assert!(!layout.ty.has_erasable_regions());
251251

252-
if layout.size.bytes() >= MIN_DANGEROUS_SIZE {
252+
if layout.size.bytes() >= MIN_DANGEROUS_ALLOC_SIZE {
253253
let (size_quantity, size_unit) = human_readable_bytes(layout.size.bytes());
254254
cx.tcx().node_span_lint(
255255
lint::builtin::DANGEROUS_STACK_ALLOCATION,

0 commit comments

Comments
 (0)