Skip to content

Rustdoc syntax highlighting of ident != is displayed as a macro invocation ident! #151904

@Darksonn

Description

@Darksonn

Code

    if layout != Layout::new::<U>() {
        return Err(new_value);
    }

Click here to view this live

Expected Outcome

The layout != part is displayed in black.

Actual Output

Image

Version

rustdoc 1.94.0-nightly (7ecabfaaf 2026-01-03)

Metadata

Metadata

Labels

A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.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