about summary refs log tree commit diff
path: root/src/test/ui/traits/suggest-deferences
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-361/+0
2022-12-14Rollup merge of #105595 - TaKO8Ki:suggest-dereferencing-receiver-argument, ↵Matthias Krüger-0/+43
r=compiler-errors Suggest dereferencing receiver arguments properly Fixes #105429
2022-12-14suggest dereferencing receiver arguments properlyTakayuki Maeda-0/+43
fix a stderr
2022-12-13Make some diagnostics not depend on the source of what they reference being ↵Oli Scherer-6/+0
available
2022-08-20Rollup merge of #100796 - TaKO8Ki:remove-unnecessary-string-searching, ↵Matthias Krüger-12/+18
r=compiler-errors Refactor: remove unnecessary string searchings This patch removes unnecessary string searchings for checking if function arguments have `&` and `&mut`.
2022-08-20remove unnecessary string searchingsTakayuki Maeda-12/+18
remove unnecessary string searchings for checking if function arguments have `&` and `&mut`
2022-08-18Reword "Required because of the requirements on the impl of ..."Andy Wang-3/+3
2022-04-04Remove hack, fix fmt and testsEsteban Kuber-2/+0
2022-04-04Suggest dereferncing when possible in E0277, fix #87437Esteban Kuber-3/+55
2022-04-04Mention implementers of unsatisfied traitEsteban Kuber-2/+1
When encountering an unsatisfied trait bound, if there are no other suggestions, mention all the types that *do* implement that trait: ``` error[E0277]: the trait bound `f32: Foo` is not satisfied --> $DIR/impl_wf.rs:22:6 | LL | impl Baz<f32> for f32 { } | ^^^^^^^^ the trait `Foo` is not implemented for `f32` | = help: the following other types implement trait `Foo`: Option<T> i32 str note: required by a bound in `Baz` --> $DIR/impl_wf.rs:18:31 | LL | trait Baz<U: ?Sized> where U: Foo { } | ^^^ required by this bound in `Baz` ``` Mention implementers of traits in `ImplObligation`s. Do not mention other `impl`s for closures, ranges and `?`.
2022-02-14further update `fuzzy_match_tys`lcnr-4/+0
2022-02-14fuzzify `fuzzy_match_tys`lcnr-0/+6
2021-09-16Point at call span that introduced obligation for the argEsteban Kuber-13/+18
2021-08-16Use note to point at bound introducing requirementEsteban Küber-13/+22
2021-08-04Remove trailing whitespace from error messagesFabian Wolff-1/+1
2021-02-09Organize trait test filesBram van den Heuvel-0/+253