Skip to content

More unknown types in webrender after #12993 #13030

Closed
@lnicola

Description

@lnicola

image

I don't know how this happened, but we're reporting more unknown types in the bitflags! expansions.

webrender is https://github.com/rust-lang/rustc-perf.git at c52ee623e231e7690a93be88d943016968c1036b.

EDIT:

Looks like manually expanding that macro makes the errors go away. Repro, note that the second item is needed:

# bitflags = "1.0"

use bitflags::bitflags;

bitflags! {
    #[repr(C)]
    pub struct FontInstanceFlags: u32 {
        const SYNTHETIC_ITALICS = 1 << 0;
        const SYNTHETIC_BOLD    = 1 << 1;
    }
}

Are we choking on $crate?

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