about summary refs log tree commit diff
path: root/src/test/ui/lint/function-item-references.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-169/+0
2020-12-26update testsBastian Kauschke-1/+1
2020-11-01Corrected suggestion for generic parameters in `function_item_references` lintAyrton-1/+15
This lint was incorrectly suggesting casting a function to a pointer without specifying generic type parameters or const generics. This would cause a compiler error since the missing parameters couldn't be inferred. This commit fixed the suggestion and added a few tests with generics.
2020-10-27Added suggestion to `function_item_references` lint and fixed warning messageAyrton-28/+28
Also updated tests accordingly and tweaked some wording in the lint declaration.
2020-10-27Added documentation for `function_item_references` lintAyrton-0/+155
Added documentation for `function_item_references` lint to the rustc book and fixed comments in the lint checker itself.