c9c80d2c5f
The only non-obvious changes: - `building/storage_live_dead_in_statics.rs` has a `#[rustfmt::skip]` attribute to avoid reformating a table of data. - Two `.mir` files have slight changes involving line numbers. - In `unusual_item_types.rs` an `EMIT_MIR` annotation is moved to outside a function, which is the usual spot, because `tidy` complains if such a comment is indented. The commit also tweaks the comments in `rustfmt.toml`.
15 lines
507 B
Rust
15 lines
507 B
Rust
// skip-filecheck
|
|
//@ compile-flags: -C debug-assertions=yes
|
|
|
|
// EMIT_MIR shifts.shift_signed.built.after.mir
|
|
fn shift_signed(small: i8, big: u128, a: i8, b: i32, c: i128) -> ([i8; 3], [u128; 3]) {
|
|
([small >> a, small >> b, small >> c], [big << a, big << b, big << c])
|
|
}
|
|
|
|
// EMIT_MIR shifts.shift_unsigned.built.after.mir
|
|
fn shift_unsigned(small: u8, big: i128, a: u8, b: u32, c: u128) -> ([u8; 3], [i128; 3]) {
|
|
([small >> a, small >> b, small >> c], [big << a, big << b, big << c])
|
|
}
|
|
|
|
fn main() {}
|