rust/tests/ui/for-loop-while
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
..
auto-loop.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
break-outside-loop.rs
break-outside-loop.stderr
break-value.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
break-while-condition.rs
break-while-condition.stderr Remove note about iteration count in coerce 2024-04-30 12:46:59 +05:30
break.rs Remove some unnecessary parens in `assert!` conditions 2025-02-06 22:28:44 +00:00
cleanup-rvalue-during-if-and-while.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
for-destruct.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
for-loop-goofiness.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
for-loop-has-unit-body.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
for-loop-into-iterator.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
for-loop-lifetime-of-unbound-values.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
for-loop-macro.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
for-loop-mut-ref-element.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
for-loop-no-std.rs remove support for the #[start] attribute 2025-01-21 06:59:15 -07:00
for-loop-panic.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
for-loop-unconstrained-element-type-i32-fallback.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
foreach-external-iterators-break.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
foreach-external-iterators-hashmap-break-restart.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
foreach-external-iterators-hashmap.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
foreach-external-iterators-loop.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
foreach-external-iterators-nested.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
foreach-external-iterators.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
foreach-nested.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
foreach-put-structured.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
foreach-simple-outer-slot.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-1257.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
issue-2216.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-51345.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
issue-69841.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
label_break_value.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
label_break_value_invalid.rs
label_break_value_invalid.stderr
labeled-break.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
linear-for-loop.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
liveness-assign-imm-local-after-loop.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
liveness-loop-break.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
liveness-move-in-loop.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
long-while.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
loop-break-cont-1.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
loop-break-cont.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
loop-break-value.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
loop-diverges.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
loop-label-shadowing.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
loop-labeled-break-value.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
loop-no-reinit-needed-post-bot.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
loop-scope.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
while-cont.rs Remove some unnecessary parens in `assert!` conditions 2025-02-06 22:28:44 +00:00
while-flow-graph.rs tests: remove `//@ pretty-expanded` usages 2024-11-26 02:50:48 +08:00
while-label.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
while-let-2.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
while-let-2.stderr Hash only the spans that we care ended up reading in Span::try_metavars 2024-12-21 20:37:27 +00:00
while-let.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
while-loop-constraints-2.rs Remove some unnecessary parens in `assert!` conditions 2025-02-06 22:28:44 +00:00
while-prelude-drop.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
while-with-break.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
while.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00