Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
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: 604ms Template: 2ms
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