Skip to content

Incorrect macro expansion in rustdoc source view #156075

@theemathas

Description

@theemathas

At https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_const_eval/const_eval/machine.rs.html#396, there's a button to expand the macro to see the source code of what the macro expands to. The macro expansion is incorrect. See screenshots below.

Image Image

For reference, the macro is defined at https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_const_eval/interpret/machine.rs.html#627-748 (see screenshot below).

Image

The problem was found to exist on the version of the page: 1.97.0-nightly (67bcaa9c4 2026-05-01)

Metadata

Metadata

Labels

C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions