about summary refs log tree commit diff
path: root/tests/ui/let-else
AgeCommit message (Collapse)AuthorLines
2025-04-10replace `//@ compile-flags: --edition` with `//@ edition`Pietro Albini-1/+2
2025-02-14Trim suggestion parts to the subset that is purely additiveMichael Goulet-2/+2
2025-02-14Consider add-prefix replacements tooMichael Goulet-6/+4
2025-02-10Show diff suggestion format on verbose replacementEsteban Küber-4/+6
``` 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-12-13Suggest using deref in patternsuellenberg-0/+10
Fixes #132784
2024-11-23Update tests for new TRPL chapter orderChris Krycho-1/+1
2024-11-16Reword suggestion messageEsteban Küber-1/+1
2024-07-04Tweak slice and as_deref suggestion spanEsteban Küber-3/+6
Use multispan suggestion.
2024-06-20Fix `...` in multline code-skips in suggestionsEsteban Küber-1/+1
When we have long code skips, we write `...` in the line number gutter. For suggestions, we were "centering" the `...` with the line, but that was consistent with what we do in every other case.
2024-04-12Suppress erroneous suggestionAlan Egerton-0/+21
The suggestion to use `let else` with an uninitialized refutable `let` statement was erroneous: `let else` cannot be used with deferred initialization.
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-26/+26
2023-12-07recurse into refs when comparing tys for diagnosticsjyn-4/+4
2023-11-24Show number in error message even for one errorNilstrieb-10/+10
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-06-08Peel borrows before suggesting as_ref/as_derefMichael Goulet-4/+6
2023-06-08More robust as_ref/as_deref suggestionsMichael Goulet-0/+16
2023-03-01recover from for-else and while-elsey21-22/+3
2023-02-01Rollup merge of #107487 - edward-shen:edward-shen/107213-round-2, r=estebankMatthias Krüger-3/+3
Make the "extra if in let...else block" hint a suggestion Changes the hint to a suggestion, suggested in #107213. r? ```@estebank```
2023-01-30Make the "extra if in let...else block" hint a suggestionEdward Shen-3/+3
2023-01-30Modify primary span label for E0308Esteban Küber-14/+14
The previous output was unintuitive to users.
2023-01-23Add suggestion to remove if in let...else blockEdward Shen-0/+25
Adds an additional hint to failures where we encounter an else keyword while we're parsing an if-let block. This is likely that the user has accidentally mixed if-let and let...else together.
2023-01-11Change `src/test` to `tests` in source files, fix tidy and testsAlbert Larsan-1/+1
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1784