about summary refs log tree commit diff
path: root/tests/ui/static
AgeCommit message (Collapse)AuthorLines
2023-12-07recurse into refs when comparing tys for diagnosticsjyn-2/+2
2023-11-24Show number in error message even for one errorNilstrieb-13/+13
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-08-30Test and note unsafe ctor to fn ptr coercionMichael Goulet-1/+0
Also remove a note that I don't consider to be very useful in context.
2023-04-19Extend and use `hir::Node::body_id`Maybe Waffle-0/+2
2023-03-12Remove uses of `box_syntax` in rustc and toolsclubby789-9/+10
2023-02-22Convert a hard-warning about named static lifetimes into lint "unused_lifetimes"Zhi Qi-10/+2
Define the `named_static_lifetimes` lint This lint will replace the existing hard-warning. Replace the named static lifetime hard-warning with the new lint Update the UI tests for the `named_static_lifetimes` lint Remove the direct dependency on `rustc_lint_defs` fix build Signed-off-by: Zhi Qi <qizhi@pingcap.com> use "UNUSED_LIFETIMES" instead Signed-off-by: Zhi Qi <qizhi@pingcap.com> update 1 test and fix typo Signed-off-by: Zhi Qi <qizhi@pingcap.com> update tests Signed-off-by: Zhi Qi <qizhi@pingcap.com> fix tests: add extra blank line Signed-off-by: Zhi Qi <qizhi@pingcap.com>
2023-01-30Make structured suggestion for fn casting verboseEsteban Küber-4/+5
2023-01-30Mention fn coercion rules (needs to be expanded)Esteban Küber-0/+1
2023-01-30Modify primary span label for E0308Esteban Küber-5/+5
The previous output was unintuitive to users.
2023-01-25Rollup merge of #106897 - estebank:issue-99430, r=davidtwcoMatthias Krüger-0/+2
Tweak E0597 CC #99430
2023-01-24Add suggestions for function pointersMatthew J Perez-1/+5
- 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/+2
CC #99430
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1215