rust/tests/ui/for-loop-while
bors dee7d0e730 Auto merge of #134478 - compiler-errors:attr-span, r=oli-obk
Properly record metavar spans for other expansions other than TT

This properly records metavar spans for nonterminals other than tokentree. This means that we operations like `span.to(other_span)` work correctly for macros. As you can see, other diagnostics involving metavars have improved as a result.

Fixes #132908
Alternative to #133270

cc `@ehuss`
cc `@petrochenkov`
2025-01-22 14:46:41 +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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +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_invalid.rs
label_break_value_invalid.stderr
label_break_value.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +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