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/rfcs | |
| 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/rfcs')
| -rw-r--r-- | tests/ui/rfcs/rfc-2497-if-let-chains/ast-pretty-check.rs | 1 | ||||
| -rw-r--r-- | tests/ui/rfcs/rfc-2497-if-let-chains/ast-pretty-check.stdout | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-2497-if-let-chains/ast-pretty-check.rs b/tests/ui/rfcs/rfc-2497-if-let-chains/ast-pretty-check.rs index 8d782646333..16165c4a42c 100644 --- a/tests/ui/rfcs/rfc-2497-if-let-chains/ast-pretty-check.rs +++ b/tests/ui/rfcs/rfc-2497-if-let-chains/ast-pretty-check.rs @@ -1,5 +1,6 @@ //@ check-pass //@ compile-flags: -Z unpretty=expanded +//@ edition: 2015 fn main() { if let 0 = 1 {} diff --git a/tests/ui/rfcs/rfc-2497-if-let-chains/ast-pretty-check.stdout b/tests/ui/rfcs/rfc-2497-if-let-chains/ast-pretty-check.stdout index 1c103f03c35..e2e45ae94ea 100644 --- a/tests/ui/rfcs/rfc-2497-if-let-chains/ast-pretty-check.stdout +++ b/tests/ui/rfcs/rfc-2497-if-let-chains/ast-pretty-check.stdout @@ -6,5 +6,6 @@ use ::std::prelude::rust_2015::*; extern crate std; //@ check-pass //@ compile-flags: -Z unpretty=expanded +//@ edition: 2015 fn main() { if let 0 = 1 {} } |
