about summary refs log tree commit diff
path: root/tests/ui/anon-params
AgeCommit message (Collapse)AuthorLines
2025-04-08UI tests: add missing diagnostic kinds where possibleVadim Petrochenkov-1/+1
2025-02-10Show diff suggestion format on verbose replacementEsteban Küber-2/+3
``` error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/attempted-access-non-fatal.rs:7:15 | LL | let _ = 2.l; | ^ | help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix | LL - let _ = 2.l; LL + let _ = 2.0f64; | ```
2024-07-18More accurate span for anonymous argument suggestionEsteban Küber-4/+4
Use smaller span for suggesting adding `_:` ahead of a type: ``` error: expected one of `(`, `...`, `..=`, `..`, `::`, `:`, `{`, or `|`, found `)` --> $DIR/anon-params-denied-2018.rs:12:47 | LL | fn foo_with_qualified_path(<Bar as T>::Baz); | ^ expected one of 8 possible tokens | = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) help: explicitly ignore the parameter name | LL | fn foo_with_qualified_path(_: <Bar as T>::Baz); | ++ ```
2024-02-18macro_rules: Preserve all metavariable spans in a global side tableVadim Petrochenkov-25/+2
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-10/+10
2024-02-07Update testsr0cky-3/+5
2024-01-05macro_rules: Add more tests for using `tt` in addition to `ident`Vadim Petrochenkov-4/+37
Generally, `tt` and `ident` should behave identically, modulo the latter accepting only a subset of token trees.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+271