Skip to content

Clicking 'src' in rustdoc for a type defined by a macro should show invocation, not macro definition #39726

Closed
@TedDriggs

Description

@TedDriggs

Repro steps:

  1. Go to a type defined by a macro. Here's an example from Hyper.
  2. Click "[src]" in the upper right

Expected: Open source viewer at the macro invocation which defines this type.
Observed: Open source viewer at the macro definition.

Metadata

Metadata

Assignees

Labels

A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions