rust/tests/ui/expr/if
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
..
attrs Make parse error suggestions verbose and fix spans 2024-07-12 03:02:57 +00:00
bad-if-let-suggestion.rs
bad-if-let-suggestion.stderr
expr-if-panic-fn.rs
expr-if-panic-pass.rs
expr-if-panic.rs
expr-if.rs
if-branch-types.rs
if-branch-types.stderr
if-check-panic.rs
if-check.rs
if-cond-bot.rs
if-else-chain-missing-else.rs Detect if-else chains with a missing final else in type errors 2025-01-16 00:18:26 +00:00
if-else-chain-missing-else.stderr Detect if-else chains with a missing final else in type errors 2025-01-16 00:18:26 +00:00
if-else-type-mismatch.rs
if-else-type-mismatch.stderr
if-let-arm-types.rs
if-let-arm-types.stderr Tweak multispan rendering 2024-12-12 23:36:27 +00:00
if-let.rs
if-let.stderr Hash only the spans that we care ended up reading in Span::try_metavars 2024-12-21 20:37:27 +00:00
if-loop.rs
if-no-match-bindings.rs
if-no-match-bindings.stderr
if-ret.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
if-ret.stderr tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
if-typeck.rs
if-typeck.stderr
if-without-block.rs
if-without-block.stderr
if-without-else-as-fn-expr.rs
if-without-else-as-fn-expr.stderr
if-without-else-result.rs
if-without-else-result.stderr
issue-4201.rs
issue-4201.stderr