Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/mir-opt/derefer_test.rs

10 lines
212 B
Rust
Raw Normal View History

Allow to run filecheck in mir-opt tests.
2023-10-16 17:36:39 +00:00
// skip-filecheck
mir-opt tests: rename unit-test -> test-mir-pass
2024-04-20 13:19:34 +02:00
//@ test-mir-pass: Derefer
New mir-opt deref_separator
2022-04-04 18:51:32 +03:00
// EMIT_MIR derefer_test.main.Derefer.diff
fn main() {
rustfmt `tests/mir-opt`. 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`.
2024-06-03 10:18:33 +10:00
let mut a = (42, 43);
New mir-opt deref_separator
2022-04-04 18:51:32 +03:00
let mut b = (99, &mut a);
let x = &mut (*b.1).0;
let y = &mut (*b.1).1;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 988ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API