Skip to content

Glob imports from enums are incorrectly tagged #7

@cbarrick

Description

@cbarrick

When we define an enum, its name has class="syntax--support syntax--type":

enum MyEnum {
    Int(i64),
    Float(f64),
}

When we use the enum, both in return position and in a function body, the name again has class="syntax--support syntax--type":

fn foo() -> MyEnum {
    MyEnum::Int(42)
}

When we import a variant of an enum, the enum name yet again has class="syntax--support syntax--type":

use super::MyEnum::Int;

BUT when we glob import from an enum, the enum name has class="syntax--entity syntax--name syntax--class":

use super::MyEnum::*;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions