about summary refs log tree commit diff
path: root/tests/ui/suggestions/lifetimes
AgeCommit message (Collapse)AuthorLines
2025-08-20diagnostics :3lcnr-2/+2
2025-08-20handle opaque types before region inferencelcnr-3/+3
2025-06-24Make missing lifetime suggestion verboseMichael Goulet-3/+6
2025-06-09Make E0621 missing lifetime suggestion verboseEsteban Küber-3/+5
``` error[E0621]: explicit lifetime required in the type of `x` --> $DIR/42701_one_named_and_one_anonymous.rs:10:9 | LL | &*x | ^^^ lifetime `'a` required | help: add explicit lifetime `'a` to the type of `x` | LL | fn foo2<'a>(a: &'a Foo, x: &'a i32) -> &'a i32 { | ++ ```
2025-06-04Replace `elided_named_lifetimes` with `mismatched_lifetime_syntaxes`Jake Goulding-10/+1
2025-02-10Show diff suggestion format on verbose replacementEsteban Küber-18/+27
``` 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-09-24be even more precise about "cast" vs "coercion"Lukas Markeffsky-1/+1
2024-09-24replace "cast" with "coercion" where applicableLukas Markeffsky-1/+1
This changes the remaining span for the cast, because the new `Cast` category has a higher priority (lower `Ord`) than the old `Coercion` category, so we no longer report the region error for the "unsizing" coercion from `*const Trait` to itself.
2024-08-31elided_named_lifetimes: bless & add testsPavel Grigorenko-1/+10
2024-08-17Bless test falloutMichael Goulet-3/+3
2024-08-06Don't arbitrarily choose one upper bound for hidden captured regionMichael Goulet-7/+2
2024-03-21Fix bad span for explicit lifetime suggestionShoyu Vanilla-0/+32
Move verbose logic to a function Minor renaming
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-14/+14
2024-02-07Update testsr0cky-5/+7
2024-01-02Adjust compiler tests for unused_tuple_struct_fields -> dead_codeJake Goulding-2/+2
2023-11-24Show number in error message even for one errorNilstrieb-3/+3
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-07Apply structured suggestion that allows test to work since 1.64Esteban Küber-0/+37
Close #73497.
2023-10-08remove trailing dotsAli MJ Al-Nasrawy-25/+25
2023-10-08always show and explain sub regionAli MJ Al-Nasrawy-168/+84
2023-10-08improve the suggestion of generic_bound_failureAli MJ Al-Nasrawy-26/+387
2023-09-21adjust how closure/generator types and rvalues are printedRalf Jung-1/+1
2023-03-03Label opaque type for 'captures lifetime' error messageMichael Goulet-1/+3
2023-01-11Fix invalid syntax in impl Trait parameter type suggestions for E0311yanchen4791-12/+244
2023-01-11Move /src/test to /testsAlbert Larsan-0/+520