about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/graph.rs
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-11-10 14:45:32 +0100
committerGitHub <noreply@github.com>2020-11-10 14:45:32 +0100
commita5f549eeb57da430ed48eac4d50256e8579af898 (patch)
treeba2f996ab151bb1dc54810f8d9ebd6f5be7507b4 /compiler/rustc_mir/src/transform/coverage/graph.rs
parent6b27f0d5b9b0feb17598126f284c01f201b2c852 (diff)
parent7beb0da4a9391facbb636a370a47d7439c8ee862 (diff)
downloadrust-a5f549eeb57da430ed48eac4d50256e8579af898.tar.gz
rust-a5f549eeb57da430ed48eac4d50256e8579af898.zip
Rollup merge of #78908 - liketechnik:fix_macro_expand_src_link, r=jyn514
(rustdoc) [src] link for types defined by macros shows invocation, not defintion

Previously the [src] link on types defined by a macro pointed to the macro definition.

This pr makes the Clean-Implementation for Spans aware of macro defined types, so that the link points to the invocation instead.

I'm not totally sure if it's okay to add the 'macro awareness' in the Clean-Implementation, because it erases that knowledge for all following code. Maybe it would be more sensible to add the check only for the link generation at https://github.com/rust-lang/rust/blob/25f6938da459a57b43bdf16ed6bdad3225b2a3ce/src/librustdoc/html/render/mod.rs#L1619

Closes #39726.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions