Skip to content

Commit da1bc4d

Browse files
committed
tidy
1 parent 806bc2d commit da1bc4d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

compiler/rustc_codegen_ssa/src/mir/mod.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,14 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
231231
if layout.size.bytes() >= MIN_DANGEROUS_SIZE {
232232
let size_str = || {
233233
let (size_quantity, size_unit) = human_readable_bytes(layout.size.bytes());
234-
format!("{:.2} {}", size_quantity, size_unit)
234+
format!("{:.2} {}", size_quantity, size_unit)
235235
};
236-
span_bug!(decl.source_info.span, "Dangerous stack allocation, size: {:?} of local: {:?} exceeds typical limits on most architectures",
237-
size_str(), local);
238-
236+
span_bug!(
237+
decl.source_info.span,
238+
"Dangerous stack allocation, size: {:?} of local: {:?} exceeds typical limits on most architectures",
239+
size_str(),
240+
local
241+
);
239242
}
240243

241244
if local == mir::RETURN_PLACE && fx.fn_abi.ret.is_indirect() {

tests/ui/codegen/issue-83060-large-stack-size.rs

-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ fn func() {
77
println!("{}", x[2]);
88
}
99

10-
11-
1210
fn main() {
1311
std::thread::Builder::new()
1412
.stack_size(5 * 1024 * 1024 * 1024)
@@ -17,4 +15,3 @@ fn main() {
1715
.join()
1816
.unwrap();
1917
}
20-

0 commit comments

Comments
 (0)