about summary refs log tree commit diff
path: root/tests/ui/asm
diff options
context:
space:
mode:
authorLukas Wirth <lukas.wirth@ferrous-systems.com>2025-04-16 10:45:03 +0200
committerLukas Wirth <lukas.wirth@ferrous-systems.com>2025-04-16 11:10:10 +0200
commit20ab952b4dd994aa6e22ff56df5314eee5ff415c (patch)
treeaba9bb5a03553683fc0196bf50f5c0513893a92e /tests/ui/asm
parentefb1e3d676e1549811da79ebd124b6fc4d856248 (diff)
downloadrust-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/asm')
-rw-r--r--tests/ui/asm/unpretty-expanded.rs1
-rw-r--r--tests/ui/asm/unpretty-expanded.stdout1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/asm/unpretty-expanded.rs b/tests/ui/asm/unpretty-expanded.rs
index 1da2c7704f4..3eb46fe4889 100644
--- a/tests/ui/asm/unpretty-expanded.rs
+++ b/tests/ui/asm/unpretty-expanded.rs
@@ -1,4 +1,5 @@
 //@ needs-asm-support
 //@ check-pass
 //@ compile-flags: -Zunpretty=expanded
+//@ edition: 2015
 core::arch::global_asm!("x: .byte 42");
diff --git a/tests/ui/asm/unpretty-expanded.stdout b/tests/ui/asm/unpretty-expanded.stdout
index 80ccd127d50..7ba1702dfed 100644
--- a/tests/ui/asm/unpretty-expanded.stdout
+++ b/tests/ui/asm/unpretty-expanded.stdout
@@ -7,4 +7,5 @@ extern crate std;
 //@ needs-asm-support
 //@ check-pass
 //@ compile-flags: -Zunpretty=expanded
+//@ edition: 2015
 global_asm! ("x: .byte 42");