Skip to content

Commit f17a9ce

Browse files
committed
only-64bit
1 parent b53fa85 commit f17a9ce

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

compiler/rustc_codegen_ssa/src/mir/mod.rs

-3
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,6 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
281281

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

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

+1-1
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)