about summary refs log tree commit diff
path: root/tests/ui/packed
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com>2024-02-16 20:02:50 +0000
committer许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com>2024-02-16 20:02:50 +0000
commitec2cc761bc7067712ecc7734502f703fe3b024c8 (patch)
tree7ab55cd9562da45b86c959f1b98c199b2b03ca92 /tests/ui/packed
parente53d6dd35bb38b81dff4b00497f4c152e9009499 (diff)
downloadrust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz
rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/packed')
-rw-r--r--tests/ui/packed/dyn-trait.rs2
-rw-r--r--tests/ui/packed/issue-118537-field-offset-ice.rs2
-rw-r--r--tests/ui/packed/issue-118537-field-offset.rs2
-rw-r--r--tests/ui/packed/issue-46152.rs2
-rw-r--r--tests/ui/packed/packed-struct-address-of-element.rs4
-rw-r--r--tests/ui/packed/packed-struct-borrow-element-64bit.rs4
-rw-r--r--tests/ui/packed/packed-struct-borrow-element.rs2
-rw-r--r--tests/ui/packed/packed-struct-drop-aligned.rs2
-rw-r--r--tests/ui/packed/packed-struct-generic-layout.rs2
-rw-r--r--tests/ui/packed/packed-struct-generic-size.rs2
-rw-r--r--tests/ui/packed/packed-struct-generic-transmute.rs2
-rw-r--r--tests/ui/packed/packed-struct-layout.rs2
-rw-r--r--tests/ui/packed/packed-struct-match.rs2
-rw-r--r--tests/ui/packed/packed-struct-optimized-enum.rs2
-rw-r--r--tests/ui/packed/packed-struct-size-xc.rs4
-rw-r--r--tests/ui/packed/packed-struct-size.rs2
-rw-r--r--tests/ui/packed/packed-struct-transmute.rs4
-rw-r--r--tests/ui/packed/packed-struct-vec.rs2
-rw-r--r--tests/ui/packed/packed-tuple-struct-layout.rs2
-rw-r--r--tests/ui/packed/packed-tuple-struct-size.rs2
-rw-r--r--tests/ui/packed/packed-with-inference-vars-issue-61402.rs2
21 files changed, 25 insertions, 25 deletions
diff --git a/tests/ui/packed/dyn-trait.rs b/tests/ui/packed/dyn-trait.rs
index bb73c26c18a..0c946ca4794 100644
--- a/tests/ui/packed/dyn-trait.rs
+++ b/tests/ui/packed/dyn-trait.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 use std::ptr::addr_of;
 
 // When the unsized tail is a `dyn Trait`, its alignments is only dynamically known. This means the
diff --git a/tests/ui/packed/issue-118537-field-offset-ice.rs b/tests/ui/packed/issue-118537-field-offset-ice.rs
index 679d9d754e3..83bace96aac 100644
--- a/tests/ui/packed/issue-118537-field-offset-ice.rs
+++ b/tests/ui/packed/issue-118537-field-offset-ice.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 #![feature(layout_for_ptr)]
 use std::mem;
 
diff --git a/tests/ui/packed/issue-118537-field-offset.rs b/tests/ui/packed/issue-118537-field-offset.rs
index cd17f767947..906b3a9f976 100644
--- a/tests/ui/packed/issue-118537-field-offset.rs
+++ b/tests/ui/packed/issue-118537-field-offset.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 #![feature(layout_for_ptr)]
 use std::mem;
 
diff --git a/tests/ui/packed/issue-46152.rs b/tests/ui/packed/issue-46152.rs
index fb1c9fb78f3..e38b445107b 100644
--- a/tests/ui/packed/issue-46152.rs
+++ b/tests/ui/packed/issue-46152.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 #![allow(dead_code)]
 #![allow(unused_variables)]
 #![feature(unsize, coerce_unsized)]
diff --git a/tests/ui/packed/packed-struct-address-of-element.rs b/tests/ui/packed/packed-struct-address-of-element.rs
index d86698cbf38..3fc27d4a96a 100644
--- a/tests/ui/packed/packed-struct-address-of-element.rs
+++ b/tests/ui/packed/packed-struct-address-of-element.rs
@@ -1,7 +1,7 @@
-// run-pass
+//@ run-pass
 #![allow(dead_code)]
 #![feature(raw_ref_op)]
-// ignore-emscripten weird assertion?
+//@ ignore-emscripten weird assertion?
 
 #[repr(packed)]
 struct Foo1 {
diff --git a/tests/ui/packed/packed-struct-borrow-element-64bit.rs b/tests/ui/packed/packed-struct-borrow-element-64bit.rs
index 63315ea6673..81eac07eaa8 100644
--- a/tests/ui/packed/packed-struct-borrow-element-64bit.rs
+++ b/tests/ui/packed/packed-struct-borrow-element-64bit.rs
@@ -1,6 +1,6 @@
-// ignore-32bit (needs `usize` to be 8-aligned to reproduce all the errors below)
+//@ ignore-32bit (needs `usize` to be 8-aligned to reproduce all the errors below)
 #![allow(dead_code)]
-// ignore-emscripten weird assertion?
+//@ ignore-emscripten weird assertion?
 
 #[repr(C, packed(4))]
 struct Foo4C {
diff --git a/tests/ui/packed/packed-struct-borrow-element.rs b/tests/ui/packed/packed-struct-borrow-element.rs
index 6cbeca44bbc..24dadbcec7c 100644
--- a/tests/ui/packed/packed-struct-borrow-element.rs
+++ b/tests/ui/packed/packed-struct-borrow-element.rs
@@ -1,5 +1,5 @@
 #![allow(dead_code)]
-// ignore-emscripten weird assertion?
+//@ ignore-emscripten weird assertion?
 
 #[repr(packed)]
 struct Foo1 {
diff --git a/tests/ui/packed/packed-struct-drop-aligned.rs b/tests/ui/packed/packed-struct-drop-aligned.rs
index ddfc86f74d3..037b8cb78b7 100644
--- a/tests/ui/packed/packed-struct-drop-aligned.rs
+++ b/tests/ui/packed/packed-struct-drop-aligned.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 #![feature(coroutines)]
 #![feature(coroutine_trait)]
 use std::cell::Cell;
diff --git a/tests/ui/packed/packed-struct-generic-layout.rs b/tests/ui/packed/packed-struct-generic-layout.rs
index e064eede4ce..c420d068506 100644
--- a/tests/ui/packed/packed-struct-generic-layout.rs
+++ b/tests/ui/packed/packed-struct-generic-layout.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 #![allow(dead_code)]
 #![allow(overflowing_literals)]
 
diff --git a/tests/ui/packed/packed-struct-generic-size.rs b/tests/ui/packed/packed-struct-generic-size.rs
index 7c93e46c30c..c1cdbd1a5ce 100644
--- a/tests/ui/packed/packed-struct-generic-size.rs
+++ b/tests/ui/packed/packed-struct-generic-size.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 #![allow(dead_code)]
 #![allow(unused_comparisons)]
 
diff --git a/tests/ui/packed/packed-struct-generic-transmute.rs b/tests/ui/packed/packed-struct-generic-transmute.rs
index c6264b6d2b3..ed655a1d483 100644
--- a/tests/ui/packed/packed-struct-generic-transmute.rs
+++ b/tests/ui/packed/packed-struct-generic-transmute.rs
@@ -3,7 +3,7 @@
 // the error points to the start of the file, not the line with the
 // transmute
 
-// error-pattern: cannot transmute between types of different sizes, or dependently-sized types
+//@ error-pattern: cannot transmute between types of different sizes, or dependently-sized types
 
 use std::mem;
 
diff --git a/tests/ui/packed/packed-struct-layout.rs b/tests/ui/packed/packed-struct-layout.rs
index d49c222e648..8b14351c08a 100644
--- a/tests/ui/packed/packed-struct-layout.rs
+++ b/tests/ui/packed/packed-struct-layout.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 #![allow(dead_code)]
 use std::mem;
 
diff --git a/tests/ui/packed/packed-struct-match.rs b/tests/ui/packed/packed-struct-match.rs
index 9a572ced717..5a6f7da3cb7 100644
--- a/tests/ui/packed/packed-struct-match.rs
+++ b/tests/ui/packed/packed-struct-match.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 
 #[repr(packed)]
 struct Foo1 {
diff --git a/tests/ui/packed/packed-struct-optimized-enum.rs b/tests/ui/packed/packed-struct-optimized-enum.rs
index c3540f7619b..e76620c630d 100644
--- a/tests/ui/packed/packed-struct-optimized-enum.rs
+++ b/tests/ui/packed/packed-struct-optimized-enum.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 #[repr(packed)]
 struct Packed<T: Copy>(#[allow(dead_code)] T);
 
diff --git a/tests/ui/packed/packed-struct-size-xc.rs b/tests/ui/packed/packed-struct-size-xc.rs
index 46112d51d83..a9c95d73d56 100644
--- a/tests/ui/packed/packed-struct-size-xc.rs
+++ b/tests/ui/packed/packed-struct-size-xc.rs
@@ -1,5 +1,5 @@
-// run-pass
-// aux-build:packed.rs
+//@ run-pass
+//@ aux-build:packed.rs
 
 
 extern crate packed;
diff --git a/tests/ui/packed/packed-struct-size.rs b/tests/ui/packed/packed-struct-size.rs
index c832c7cfad5..98167fc33fa 100644
--- a/tests/ui/packed/packed-struct-size.rs
+++ b/tests/ui/packed/packed-struct-size.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 #![allow(dead_code)]
 #![allow(non_camel_case_types)]
 #![allow(non_upper_case_globals)]
diff --git a/tests/ui/packed/packed-struct-transmute.rs b/tests/ui/packed/packed-struct-transmute.rs
index a7d284025d7..cf7c1f2b7cd 100644
--- a/tests/ui/packed/packed-struct-transmute.rs
+++ b/tests/ui/packed/packed-struct-transmute.rs
@@ -3,8 +3,8 @@
 // the error points to the start of the file, not the line with the
 // transmute
 
-// normalize-stderr-test "\d+ bits" -> "N bits"
-// error-pattern: cannot transmute between types of different sizes, or dependently-sized types
+//@ normalize-stderr-test "\d+ bits" -> "N bits"
+//@ error-pattern: cannot transmute between types of different sizes, or dependently-sized types
 
 use std::mem;
 
diff --git a/tests/ui/packed/packed-struct-vec.rs b/tests/ui/packed/packed-struct-vec.rs
index 18676cfc22e..cc0c3b98999 100644
--- a/tests/ui/packed/packed-struct-vec.rs
+++ b/tests/ui/packed/packed-struct-vec.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 
 use std::fmt;
 use std::mem;
diff --git a/tests/ui/packed/packed-tuple-struct-layout.rs b/tests/ui/packed/packed-tuple-struct-layout.rs
index 879553142da..447639b3872 100644
--- a/tests/ui/packed/packed-tuple-struct-layout.rs
+++ b/tests/ui/packed/packed-tuple-struct-layout.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 use std::mem;
 
 #[repr(packed)]
diff --git a/tests/ui/packed/packed-tuple-struct-size.rs b/tests/ui/packed/packed-tuple-struct-size.rs
index f7a3c903fca..48358513586 100644
--- a/tests/ui/packed/packed-tuple-struct-size.rs
+++ b/tests/ui/packed/packed-tuple-struct-size.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 #![allow(dead_code)]
 #![allow(non_camel_case_types)]
 
diff --git a/tests/ui/packed/packed-with-inference-vars-issue-61402.rs b/tests/ui/packed/packed-with-inference-vars-issue-61402.rs
index 659864c1d9b..e726734d04a 100644
--- a/tests/ui/packed/packed-with-inference-vars-issue-61402.rs
+++ b/tests/ui/packed/packed-with-inference-vars-issue-61402.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 // If a struct is packed and its last field has drop glue, then that
 // field needs to be Sized (to allow it to be destroyed out-of-place).
 //