diff options
| author | Lukas Wirth <lukas.wirth@ferrous-systems.com> | 2025-04-16 10:45:03 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukas.wirth@ferrous-systems.com> | 2025-04-16 11:10:10 +0200 |
| commit | 20ab952b4dd994aa6e22ff56df5314eee5ff415c (patch) | |
| tree | aba9bb5a03553683fc0196bf50f5c0513893a92e /tests/ui/match | |
| parent | efb1e3d676e1549811da79ebd124b6fc4d856248 (diff) | |
| download | rust-20ab952b4dd994aa6e22ff56df5314eee5ff415c.tar.gz rust-20ab952b4dd994aa6e22ff56df5314eee5ff415c.zip | |
Explicitly annotate edition for `unpretty=expanded` and `unpretty=hir` tests
These emit prelude imports which means they are always edition dependent
Diffstat (limited to 'tests/ui/match')
| -rw-r--r-- | tests/ui/match/issue-82392.rs | 1 | ||||
| -rw-r--r-- | tests/ui/match/issue-82392.stdout | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/match/issue-82392.rs b/tests/ui/match/issue-82392.rs index 6f9527fb337..4ae08fed93a 100644 --- a/tests/ui/match/issue-82392.rs +++ b/tests/ui/match/issue-82392.rs @@ -1,6 +1,7 @@ // https://github.com/rust-lang/rust/issues/82329 //@ compile-flags: -Zunpretty=hir,typed //@ check-pass +//@ edition:2015 pub fn main() { if true { diff --git a/tests/ui/match/issue-82392.stdout b/tests/ui/match/issue-82392.stdout index 8949611ac12..8b7edabf004 100644 --- a/tests/ui/match/issue-82392.stdout +++ b/tests/ui/match/issue-82392.stdout @@ -5,6 +5,7 @@ extern crate std; // https://github.com/rust-lang/rust/issues/82329 //@ compile-flags: -Zunpretty=hir,typed //@ check-pass +//@ edition:2015 fn main() ({ (if (true as bool) |
