rust/tests/ui/numbers-arithmetic
Esteban Küber 3815ed63ed Remove some unnecessary parens in `assert!` conditions
While working on #122661, some of these started triggering our "unnecessary parens" lints due to a change in the `assert!` desugaring. A cursory search identified a few more. Some of these have been carried from before 1.0, were a bulk rename from the previous name of `assert!` left them in that state. I went and removed as many of these unnecessary parens as possible in order to have fewer annoyances in the future if we make the lint smarter.
2025-02-06 22:28:44 +00:00
..
apfloat-modulo-wrong.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
arith-unsigned.rs Remove some unnecessary parens in `assert!` conditions 2025-02-06 22:28:44 +00:00
div-mod.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
divide-by-zero.rs tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}` 2025-01-23 20:51:29 +08:00
f16-f128-lit.rs Remove f16 const eval crash test 2024-06-14 12:47:42 -05:00
float-int-invalid-const-cast.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
float-literal-inference.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
float-nan.rs Remove some unnecessary parens in `assert!` conditions 2025-02-06 22:28:44 +00:00
float-signature.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
float.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
float2.rs Remove some unnecessary parens in `assert!` conditions 2025-02-06 22:28:44 +00:00
float_math.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
floatlits.rs Remove some unnecessary parens in `assert!` conditions 2025-02-06 22:28:44 +00:00
i8-incr.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
i32-sub.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
i128.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
int-abs-overflow.rs tests: use `needs-threads` instead of `ignore-emscripten` 2025-01-23 20:51:29 +08:00
int.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
integer-literal-radix.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
integer-literal-suffix-inference-2.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
integer-literal-suffix-inference-3.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
integer-literal-suffix-inference.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
issue-8460.rs tests: use `needs-threads` instead of `ignore-emscripten` 2025-01-23 20:51:29 +08:00
location-add-assign-overflow.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
location-add-overflow.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
location-divide-assign-by-zero.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
location-divide-by-zero.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
location-mod-assign-by-zero.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
location-mod-by-zero.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
location-mul-assign-overflow.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
location-mul-overflow.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
location-sub-assign-overflow.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
location-sub-overflow.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
mod-zero.rs tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}` 2025-01-23 20:51:29 +08:00
next-power-of-two-overflow-debug.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
next-power-of-two-overflow-ndebug.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
not-suggest-float-literal.rs
not-suggest-float-literal.stderr Don't call const normalize in error reporting 2024-09-22 13:55:06 -04:00
num-wrapping.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
numeric-method-autoexport.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
overflow-attribute-works-1.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
overflow-attribute-works-2.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
overflowing-add.rs tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}` 2025-01-23 20:51:29 +08:00
overflowing-lsh-4.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
overflowing-lsh-4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
overflowing-mul.rs tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}` 2025-01-23 20:51:29 +08:00
overflowing-neg-nonzero.rs tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}` 2025-01-23 20:51:29 +08:00
overflowing-pow-signed.rs tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}` 2025-01-23 20:51:29 +08:00
overflowing-pow-unsigned.rs tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}` 2025-01-23 20:51:29 +08:00
overflowing-rsh-4.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
overflowing-rsh-4.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
overflowing-sub.rs tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}` 2025-01-23 20:51:29 +08:00
promoted_overflow.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
saturating-float-casts-impl.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
saturating-float-casts-wasm.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
saturating-float-casts.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
shift-near-oflo.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
shift-various-types.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
shift.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
signed-shift-const-eval.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
suggest-float-literal.fixed [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
suggest-float-literal.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
suggest-float-literal.stderr Don't call const normalize in error reporting 2024-09-22 13:55:06 -04:00
u8-incr-decr.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
u8-incr.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
u32-decr.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
u128-as-f32.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
u128.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
uint.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
unary-minus-suffix-inference.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00