about summary refs log tree commit diff
path: root/tests/ui/binop
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/binop
parente53d6dd35bb38b81dff4b00497f4c152e9009499 (diff)
downloadrust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz
rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/binop')
-rw-r--r--tests/ui/binop/binary-minus-without-space.rs2
-rw-r--r--tests/ui/binop/binary-op-on-double-ref.fixed2
-rw-r--r--tests/ui/binop/binary-op-on-double-ref.rs2
-rw-r--r--tests/ui/binop/binary-op-on-fn-ptr-eq.rs2
-rw-r--r--tests/ui/binop/binop-bitxor-str.rs2
-rw-r--r--tests/ui/binop/binop-fail-3.rs6
-rw-r--r--tests/ui/binop/binop-mul-bool.rs2
-rw-r--r--tests/ui/binop/binop-panic.rs6
-rw-r--r--tests/ui/binop/binops-issue-22743.rs2
-rw-r--r--tests/ui/binop/binops.rs2
-rw-r--r--tests/ui/binop/borrow-suggestion-109352.fixed2
-rw-r--r--tests/ui/binop/borrow-suggestion-109352.rs2
-rw-r--r--tests/ui/binop/false-binop-caused-by-missing-semi.fixed2
-rw-r--r--tests/ui/binop/false-binop-caused-by-missing-semi.rs2
-rw-r--r--tests/ui/binop/issue-25916.rs2
-rw-r--r--tests/ui/binop/operator-multidispatch.rs2
-rw-r--r--tests/ui/binop/operator-overloading.rs2
-rw-r--r--tests/ui/binop/structured-compare.rs2
18 files changed, 22 insertions, 22 deletions
diff --git a/tests/ui/binop/binary-minus-without-space.rs b/tests/ui/binop/binary-minus-without-space.rs
index 2fbd5300dd1..c80c0c88fcb 100644
--- a/tests/ui/binop/binary-minus-without-space.rs
+++ b/tests/ui/binop/binary-minus-without-space.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 // Check that issue #954 stays fixed
 
 
diff --git a/tests/ui/binop/binary-op-on-double-ref.fixed b/tests/ui/binop/binary-op-on-double-ref.fixed
index 586d2568c30..c471c20b0a0 100644
--- a/tests/ui/binop/binary-op-on-double-ref.fixed
+++ b/tests/ui/binop/binary-op-on-double-ref.fixed
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 fn main() {
     let v = vec![1, 2, 3, 4, 5, 6, 7, 8, 9];
     let vr = v.iter().filter(|x| {
diff --git a/tests/ui/binop/binary-op-on-double-ref.rs b/tests/ui/binop/binary-op-on-double-ref.rs
index 48ee445466e..18b5906120a 100644
--- a/tests/ui/binop/binary-op-on-double-ref.rs
+++ b/tests/ui/binop/binary-op-on-double-ref.rs
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 fn main() {
     let v = vec![1, 2, 3, 4, 5, 6, 7, 8, 9];
     let vr = v.iter().filter(|x| {
diff --git a/tests/ui/binop/binary-op-on-fn-ptr-eq.rs b/tests/ui/binop/binary-op-on-fn-ptr-eq.rs
index 8e20640b58d..a5ec63587f9 100644
--- a/tests/ui/binop/binary-op-on-fn-ptr-eq.rs
+++ b/tests/ui/binop/binary-op-on-fn-ptr-eq.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 // Tests equality between supertype and subtype of a function
 // See the issue #91636
 fn foo(_a: &str) {}
diff --git a/tests/ui/binop/binop-bitxor-str.rs b/tests/ui/binop/binop-bitxor-str.rs
index 3085cce3f3e..d59e46167fe 100644
--- a/tests/ui/binop/binop-bitxor-str.rs
+++ b/tests/ui/binop/binop-bitxor-str.rs
@@ -1,3 +1,3 @@
-// error-pattern:no implementation for `String ^ String`
+//@ error-pattern:no implementation for `String ^ String`
 
 fn main() { let x = "a".to_string() ^ "b".to_string(); }
diff --git a/tests/ui/binop/binop-fail-3.rs b/tests/ui/binop/binop-fail-3.rs
index 49f635e0c11..b1e70a1c596 100644
--- a/tests/ui/binop/binop-fail-3.rs
+++ b/tests/ui/binop/binop-fail-3.rs
@@ -1,6 +1,6 @@
-// run-fail
-// error-pattern:quux
-// ignore-emscripten no processes
+//@ run-fail
+//@ error-pattern:quux
+//@ ignore-emscripten no processes
 
 fn foo() -> ! {
     panic!("quux");
diff --git a/tests/ui/binop/binop-mul-bool.rs b/tests/ui/binop/binop-mul-bool.rs
index 41494c7a017..0b4ed21a12d 100644
--- a/tests/ui/binop/binop-mul-bool.rs
+++ b/tests/ui/binop/binop-mul-bool.rs
@@ -1,3 +1,3 @@
-// error-pattern:cannot multiply `bool` by `bool`
+//@ error-pattern:cannot multiply `bool` by `bool`
 
 fn main() { let x = true * false; }
diff --git a/tests/ui/binop/binop-panic.rs b/tests/ui/binop/binop-panic.rs
index 44cdfffeeb7..8dbf62a922e 100644
--- a/tests/ui/binop/binop-panic.rs
+++ b/tests/ui/binop/binop-panic.rs
@@ -1,6 +1,6 @@
-// run-fail
-// error-pattern:quux
-// ignore-emscripten no processes
+//@ run-fail
+//@ error-pattern:quux
+//@ ignore-emscripten no processes
 
 fn my_err(s: String) -> ! {
     println!("{}", s);
diff --git a/tests/ui/binop/binops-issue-22743.rs b/tests/ui/binop/binops-issue-22743.rs
index 393ba0a56cb..d8f7d94ab41 100644
--- a/tests/ui/binop/binops-issue-22743.rs
+++ b/tests/ui/binop/binops-issue-22743.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 
 use std::ops::Mul;
 
diff --git a/tests/ui/binop/binops.rs b/tests/ui/binop/binops.rs
index a7abf6087b3..0adbb49b14a 100644
--- a/tests/ui/binop/binops.rs
+++ b/tests/ui/binop/binops.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 
 #![allow(non_camel_case_types)]
 // Binop corner cases
diff --git a/tests/ui/binop/borrow-suggestion-109352.fixed b/tests/ui/binop/borrow-suggestion-109352.fixed
index 3374a9d78b2..15548289155 100644
--- a/tests/ui/binop/borrow-suggestion-109352.fixed
+++ b/tests/ui/binop/borrow-suggestion-109352.fixed
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 struct Foo;
 
diff --git a/tests/ui/binop/borrow-suggestion-109352.rs b/tests/ui/binop/borrow-suggestion-109352.rs
index 4e8510e0de5..b01b7f04ce9 100644
--- a/tests/ui/binop/borrow-suggestion-109352.rs
+++ b/tests/ui/binop/borrow-suggestion-109352.rs
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 
 struct Foo;
 
diff --git a/tests/ui/binop/false-binop-caused-by-missing-semi.fixed b/tests/ui/binop/false-binop-caused-by-missing-semi.fixed
index b47372c9064..6ad6aa0ccef 100644
--- a/tests/ui/binop/false-binop-caused-by-missing-semi.fixed
+++ b/tests/ui/binop/false-binop-caused-by-missing-semi.fixed
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 fn foo() {}
 fn main() {
     let mut y = 42;
diff --git a/tests/ui/binop/false-binop-caused-by-missing-semi.rs b/tests/ui/binop/false-binop-caused-by-missing-semi.rs
index 14671de7e51..39270d767fe 100644
--- a/tests/ui/binop/false-binop-caused-by-missing-semi.rs
+++ b/tests/ui/binop/false-binop-caused-by-missing-semi.rs
@@ -1,4 +1,4 @@
-// run-rustfix
+//@ run-rustfix
 fn foo() {}
 fn main() {
     let mut y = 42;
diff --git a/tests/ui/binop/issue-25916.rs b/tests/ui/binop/issue-25916.rs
index 0b415947965..c6721fab710 100644
--- a/tests/ui/binop/issue-25916.rs
+++ b/tests/ui/binop/issue-25916.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 #![allow(unused_must_use)]
 
 fn main() {
diff --git a/tests/ui/binop/operator-multidispatch.rs b/tests/ui/binop/operator-multidispatch.rs
index 0d1dcfd8bdd..5ac4074b797 100644
--- a/tests/ui/binop/operator-multidispatch.rs
+++ b/tests/ui/binop/operator-multidispatch.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 // Test that we can overload the `+` operator for points so that two
 // points can be added, and a point can be added to an integer.
 
diff --git a/tests/ui/binop/operator-overloading.rs b/tests/ui/binop/operator-overloading.rs
index 6b3abcbc76c..7f29856194e 100644
--- a/tests/ui/binop/operator-overloading.rs
+++ b/tests/ui/binop/operator-overloading.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 
 #![allow(unused_variables)]
 use std::cmp;
diff --git a/tests/ui/binop/structured-compare.rs b/tests/ui/binop/structured-compare.rs
index 63d30c4da89..164760cd7a0 100644
--- a/tests/ui/binop/structured-compare.rs
+++ b/tests/ui/binop/structured-compare.rs
@@ -1,4 +1,4 @@
-// run-pass
+//@ run-pass
 
 #![allow(non_camel_case_types)]