Skip to content

rustdoc: When view source, macro-expanded items are not shown at when macro is called #74818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tesuji opened this issue Jul 27, 2020 · 2 comments
Labels
C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@tesuji
Copy link
Contributor

tesuji commented Jul 27, 2020

Try this: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/parser/struct.Restrictions.html
(Note: The link of rustc API may die).

Click to view source [src] button, it will lead you to bitflag doc.

I expected to see this happen: The button should lead me to source code at call site:

bitflags::bitflags! {
struct Restrictions: u8 {
const STMT_EXPR = 1 << 0;
const NO_STRUCT_LITERAL = 1 << 1;
}
}

@tesuji tesuji added the C-bug Category: This is a bug. label Jul 27, 2020
@tesuji tesuji changed the title rustdoc: Macro-expanded items are not rustdoc: When view source, macro-expanded items are not shown at when macro is called Jul 27, 2020
@tesuji

This comment has been minimized.

@rustbot rustbot added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jul 27, 2020
@jyn514
Copy link
Member

jyn514 commented Oct 11, 2020

Duplicate of #39726

@jyn514 jyn514 marked this as a duplicate of #39726 Oct 11, 2020
@jyn514 jyn514 closed this as completed Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants