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_complex_case.rs

11 lines
199 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
Make derefer work everwhere Co-Authored-By: Oli Scherer <332036+oli-obk@users.noreply.github.com>
2022-04-16 16:03:14 +03:00
// EMIT_MIR derefer_complex_case.main.Derefer.diff
properly mark tests that require panic=abort
2023-06-08 09:18:34 +02:00
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
Make derefer work everwhere Co-Authored-By: Oli Scherer <332036+oli-obk@users.noreply.github.com>
2022-04-16 16:03:14 +03:00
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
for &foo in &[42, 43] {
drop(foo)
}
Make derefer work everwhere Co-Authored-By: Oli Scherer <332036+oli-obk@users.noreply.github.com>
2022-04-16 16:03:14 +03:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 929ms Template: 3ms
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