rust/tests/ui/binop
Jacob Pratt 82bb6d523b
Rollup merge of #145896 - Oneirical:uncountable-integer-10, r=jieyouxu
Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#3 of Batch #2]

Part of rust-lang/rust#133895

Methodology:

1. Refer to the previously written `tests/ui/SUMMARY.md`
2. Find an appropriate category for the test, using the original issue thread and the test contents.
3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers)
4. Rename the tests to make their purpose clearer

Inspired by the methodology that `@Kivooeo` was using.

r? `@jieyouxu`
2025-09-13 03:26:02 -04:00
..
auxiliary tests: adjust some augmented-assignment* tests 2025-04-19 18:42:24 +08:00
augmented-assignment.rs tests: adjust some augmented-assignment* tests 2025-04-19 18:42:24 +08:00
augmented-assignments-cross-crate.rs tests: adjust some augmented-assignment* tests 2025-04-19 18:42:24 +08:00
binary-minus-without-space.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
binary-op-not-allowed-issue-125631.rs Change E0369 diagnostic give note information for foreign items. 2024-06-25 10:00:30 +08:00
binary-op-not-allowed-issue-125631.stderr Change E0369 diagnostic give note information for foreign items. 2024-06-25 10:00:30 +08:00
binary-op-on-double-ref.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
binary-op-on-double-ref.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
binary-op-on-double-ref.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
binary-op-on-fn-ptr-eq.rs Allow fn pointers comparisons lint in UI tests 2024-12-02 18:43:37 +01:00
binary-op-suggest-deref.rs Fix ICE when suggesting dereferencing binop operands 2024-01-12 17:49:37 -08:00
binary-op-suggest-deref.stderr Remove detail from label/note that is already available in other note 2024-10-29 16:26:57 +00:00
binop-bitxor-str.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
binop-bitxor-str.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
binop-consume-args.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-consume-args.stderr Mention type parameter in more cases and don't suggest ~const bound already there 2024-12-07 21:37:13 +00:00
binop-evaluation-order-primitive.rs cleaned up some tests 2025-07-05 00:45:24 +05:00
binop-fail-3.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
binop-logic-float.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-logic-float.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-logic-int.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-logic-int.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-move-semantics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-move-semantics.stderr Mention type parameter in more cases and don't suggest ~const bound already there 2024-12-07 21:37:13 +00:00
binop-mul-bool.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
binop-mul-bool.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
binop-mul-i32-f32.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-mul-i32-f32.stderr Don't call const normalize in error reporting 2024-09-22 13:55:06 -04:00
binop-panic.rs tests: use needs-subprocess instead of ignore-{wasm32,emscripten,sgx} 2025-01-23 20:51:29 +08:00
binop-typeck.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-typeck.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
binops-issue-22743.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
binops.rs Allow integer_to_ptr_transmutes in tests 2025-08-24 00:03:54 +02:00
borrow-suggestion-109352-2.rs Improve diagnostic for wrong borrow on binary operations 2023-08-01 10:08:17 +02:00
borrow-suggestion-109352-2.stderr Improve diagnostic for wrong borrow on binary operations 2023-08-01 10:08:17 +02:00
borrow-suggestion-109352.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrow-suggestion-109352.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
borrow-suggestion-109352.stderr Improve diagnostic for wrong borrow on binary operations 2023-08-01 10:08:17 +02:00
compound-assign-by-ref.rs cleaned up some tests 2025-07-05 00:50:51 +05:00
eq-arr.rs Provide RHS type hint when reporting operator error 2023-04-27 01:34:03 +00:00
eq-arr.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
eq-vec.rs Provide RHS type hint when reporting operator error 2023-04-27 01:34:03 +00:00
eq-vec.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
false-binop-caused-by-missing-semi.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
false-binop-caused-by-missing-semi.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
false-binop-caused-by-missing-semi.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
function-comparison-errors-59488.rs Add test batch 3 2025-09-12 14:45:12 -04:00
function-comparison-errors-59488.stderr Add test batch 3 2025-09-12 14:45:12 -04:00
issue-3820.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-3820.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-25916.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-28837.rs Improved wording of error messages of missing remainder implementations 2023-01-30 19:54:33 +00:00
issue-28837.stderr Provide RHS type hint when reporting operator error 2023-04-27 01:34:03 +00:00
issue-62375.rs Move some tests 2024-02-09 15:43:08 -03:00
issue-62375.stderr Move some tests 2024-02-09 15:43:08 -03:00
issue-77910-1.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
issue-77910-1.stderr Implement DesugaringKind::FormatLiteral 2025-06-22 10:58:25 +02:00
issue-77910-2.rs Continue to borrowck even if there were previous errors 2024-02-08 08:10:43 +00:00
issue-77910-2.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
issue-93927.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-93927.stderr Mention type parameter in more cases and don't suggest ~const bound already there 2024-12-07 21:37:13 +00:00
multiply-is-deref-on-rhs.rs Don't delay a bug if we suggest adding a semicolon to the RHS of an assign operator 2024-04-10 15:07:13 -04:00
multiply-is-deref-on-rhs.stderr Don't delay a bug if we suggest adding a semicolon to the RHS of an assign operator 2024-04-10 15:07:13 -04:00
nested-assignment-may-be-deref.rs Only suppress binop error in favor of semicolon suggestion if we're in an assignment statement 2024-05-23 19:22:55 -04:00
nested-assignment-may-be-deref.stderr Only suppress binop error in favor of semicolon suggestion if we're in an assignment statement 2024-05-23 19:22:55 -04:00
operator-multidispatch.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
operator-overloading.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
placement-syntax.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
placement-syntax.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
shift-various-bad-types.rs compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
shift-various-bad-types.stderr compiletest: Make diagnostic kind mandatory on line annotations 2025-04-30 10:44:24 +03:00
struct-field-generic-type-binary-assignment-error-6738.rs Add test batch 1 2025-08-27 00:23:26 -04:00
struct-field-generic-type-binary-assignment-error-6738.stderr Add test batch 1 2025-08-27 00:23:26 -04:00
structured-compare.rs Remove some unnecessary parens in assert! conditions 2025-02-06 22:28:44 +00:00