Skip to content

(Rust) Types are not always highlighted #3539

@Serial-ATA

Description

@Serial-ATA

Describe the issue
Types will sometimes not receive any highlighting.

Which language seems to have the issue?
Rust

Are you using highlight or highlightAuto?
highlight

Sample Code to Reproduce

let vec: Vec<isize> = Vec::new();
                   // ^^^ Not highlighted (The first `Vec` as well as `new` are highlighted)
if 100 > i32::MAX {}
      // ^^^ Not highlighted

https://jsfiddle.net/k7xe4vsz/1/

Expected behavior
All types are highlighted.

Additional context
I noticed this when trying to upgrade from v9.5.0 to v11.5.1. Prior to the upgrade, both lines were properly highlighted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions