about summary refs log tree commit diff
path: root/tests/ui/closures/2229_closure_analysis/diagnostics
AgeCommit message (Collapse)AuthorLines
2025-08-20handle opaque types before region inferencelcnr-21/+22
2025-04-08UI tests: add missing diagnostic kinds where possibleVadim Petrochenkov-5/+5
2025-01-27Reapply "Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, ↵Michael Goulet-38/+8
r=davidtwco,RalfJung" This reverts commit 122a55bb442bd1995df9cf9b36e6f65ed3ef4a1d.
2025-01-18Revert "Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, ↵Rémy Rakic-8/+38
r=davidtwco,RalfJung" This reverts commit b57d93d8b9525fa261404b4cd9c0670eeb1264b8, reversing changes made to 0aeaa5eb22180fdf12a8489e63c4daa18da6f236.
2024-12-03Bounds-check with PtrMetadata instead of Len in MIRScott McMurray-38/+8
2024-11-13Suggest borrowing arguments in generic positions when trait bounds are satisfieddianne-16/+0
This subsumes the suggestions to borrow arguments with `AsRef`/`Borrow` bounds and those to borrow arguments with `Fn` and `FnMut` bounds. It works for other traits implemented on references as well, such as `std::io::Read`, `std::io::Write`, and `core::fmt::Write`. Incidentally, by making the logic for suggesting borrowing closures general, this removes some spurious suggestions to mutably borrow `FnMut` closures in assignments, as well as an unhelpful suggestion to add a `Clone` constraint to an `impl Fn` argument.
2024-07-04More accurate mutability suggestionEsteban Küber-6/+10
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-24/+24
2024-02-08Continue to borrowck even if there were previous errorsOli Scherer-1/+1
2023-11-24Show number in error message even for one errorNilstrieb-16/+16
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-05-05tweak "make mut" spans when assigning to localsEzra Shaw-1/+1
2023-04-28improve error notes for packed struct reference diagnosticbindsdev-1/+2
2023-01-31make unaligned_reference a hard errorRalf Jung-19/+2
2023-01-15Tweak E0597Esteban Küber-15/+15
CC #99430
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1316