Skip to content

Commit 646d175

Browse files
committed
only-64bit
1 parent 2c48b9b commit 646d175

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

compiler/rustc_codegen_ssa/src/mir/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,6 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
291291

292292
/// Formats a number of bytes into a human readable SI-prefixed size.
293293
/// Returns a tuple of `(quantity, units)`.
294-
//
295-
// Taken from Cargo:
296-
// https://github.com/rust-lang/cargo/blob/2ce45605d9db521b5fd6c1211ce8de6055fdb24e/src/cargo/util/mod.rs#L88-L95
297294
pub fn human_readable_bytes(bytes: u64) -> (u64, &'static str) {
298295
static UNITS: [&str; 7] = ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB"];
299296
let i = ((bytes.ilog2() / 10) as usize).min(UNITS.len() - 1);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// build-fail
2-
2+
// only-64bit
33
fn func() {
44
const CAP: usize = std::u32::MAX as usize;
55
let mut x: [u8; CAP>>1] = [0; CAP>>1];

0 commit comments

Comments
 (0)