]> git.lizzy.rs Git - rust.git/commit
Removed test for unhandled case in function_item_references lint
authorAyrton <a.munoz3327@gmail.com>
Tue, 6 Oct 2020 15:59:14 +0000 (11:59 -0400)
committerAyrton <a.munoz3327@gmail.com>
Tue, 27 Oct 2020 15:04:04 +0000 (11:04 -0400)
commit432ebd57efe38e691acc25570cb79acbe4956651
treef5177e4c87d6077658ec8d3c5701c795485e9ef7
parent511fe048b4ee2535961014b1be3294a771cc7e87
Removed test for unhandled case in function_item_references lint

Removed test for the unhandled case of calls to `fn f<T>(x: &T)` where `x` is a
function reference and is formatted as a pointer in `f`. This compiles since
`&T` implements `Pointer`, but is unlikely to occur in practice. Also tweaked
the lint's wording and modified tests accordingly.
compiler/rustc_mir/src/transform/function_references.rs
src/test/ui/lint/function-references.rs
src/test/ui/lint/function-references.stderr