about summary refs log tree commit diff
path: root/tests/ui/fn
AgeCommit message (Collapse)AuthorLines
2023-04-03Never consider int and float vars for `FnPtr` candidatesNilstrieb-0/+10
This solves a regression where `0.0.cmp()` was ambiguous when a custom trait with a `cmp` method was in scope. FOr integers it shouldn't be a problem in practice so I wasn't able to add a test.
2023-03-27Add a builtin `FnPtr` traitlcnr-0/+9
2023-03-10feat: implement better error for manual impl of `Fn*` traitsEzra Shaw-0/+28
2023-02-22diagnostics: update test cases to refer to assoc fn with `self` as methodMichael Howell-1/+1
2023-01-30Make structured suggestion for fn casting verboseEsteban Küber-12/+18
2023-01-30Mention fn coercion rules (needs to be expanded)Esteban Küber-0/+3
2023-01-30Modify primary span label for E0308Esteban Küber-13/+12
The previous output was unintuitive to users.
2023-01-26improve fn pointer notesMatthew J Perez-1/+9
- add note and suggestion for casting both expected and found fn items to fn pointers - add note for casting expected fn item to fn pointer
2023-01-25Rollup merge of #106897 - estebank:issue-99430, r=davidtwcoMatthias Krüger-0/+4
Tweak E0597 CC #99430
2023-01-24Add suggestions for function pointersMatthew J Perez-48/+176
- On compiler-error's suggestion of moving this lower down the stack, along the path of `report_mismatched_types()`, which is used by `rustc_hir_analysis` and `rustc_hir_typeck`. - update ui tests, add test - add suggestions for references to fn pointers - modify `TypeErrCtxt::same_type_modulo_infer` to take `T: relate::Relate` instead of `Ty`
2023-01-15Tweak E0597Esteban Küber-0/+4
CC #99430
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1025