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`.
13 lines
257 B
Rust
13 lines
257 B
Rust
// skip-filecheck
|
|
// Test that we don't generate unnecessarily large MIR for very simple matches
|
|
|
|
// EMIT_MIR simple_match.match_bool.built.after.mir
|
|
fn match_bool(x: bool) -> usize {
|
|
match x {
|
|
true => 10,
|
|
_ => 20,
|
|
}
|
|
}
|
|
|
|
fn main() {}
|