Skip to content

rustdoc doesn't highlight "&&" properly #72684

Closed
@refacto

Description

@refacto

I tried viewing this code with rustdoc:

// Both opts don't make sense
if matches.opt_present("m") && matches.opt_present("a") {
    print_usage(&program, opts);
    return;
}

I expected to see this happen: the && operator to be highlighted correctly

Instead, this happened:
20200528_10h35m34s_grim

Meta

rustc --version --verbose: (issue also exists with nightly, 2020-05-14)

rustc 1.43.1 (8d69840ab 2020-05-04)
binary: rustc
commit-hash: 8d69840ab92ea7f4d323420088dd8c9775f180cd
commit-date: 2020-05-04
host: x86_64-unknown-linux-musl
release: 1.43.1
LLVM version: 9.0

This issue has been assigned to @euclio via this comment.

Metadata

Metadata

Assignees

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions