about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-11-03 19:32:38 +0100
committerGitHub <noreply@github.com>2020-11-03 19:32:38 +0100
commitf347dab47c2c29640747d8200e00f6a5de3c7b7b (patch)
tree4e2481cc42b1d3d03294c58b25578c697046b9b5 /compiler/rustc_mir/src/transform/coverage/debug.rs
parentf0112928cb13dbf8936c79d31badf3b684bdda10 (diff)
parentace02c40f0d5970c46aaee74f7ee2fb27480c783 (diff)
downloadrust-f347dab47c2c29640747d8200e00f6a5de3c7b7b.tar.gz
rust-f347dab47c2c29640747d8200e00f6a5de3c7b7b.zip
Rollup merge of #78659 - ayrtonm:fn-ref-lint-fix, r=oli-obk
Corrected suggestion for generic parameters in `function_item_references` lint

This commit handles functions with generic type parameters like you pointed out as well as const generics. Also this is probably a minor thing, but the type alias you used in the example doesn't show up so the suggestion right now would be `size_of::<[u8; 16]> as fn() ->`. This is because the lint checker works with MIR instead of HIR. I don't think we can get the alias at that point, but let me know if I'm wrong and there's a way to fix this. Also I put you as the reviewer, but I'm not sure if you want to review it or if it makes more sense to ask one of the original reviewers of this lint.
closes #78571
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions