Skip to content

Fails to build on dragonfly target with a macro matcher failure #1957

@nagisa

Description

@nagisa
error: no rules expected the token `#`
Error:    --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.79/src/unix/bsd/freebsdlike/dragonfly/errno.rs:4:5
    |
4   |     #[deprecated(since = "0.2.77", "Use `__errno_location()` instead")]
    |     ^ no rules expected this token in macro call
    | 
   ::: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.79/src/macros.rs:230:9
    |
230 |         macro_rules! f {
    |         -------------- when calling this macro

From a brief look at the code it seems like f! has not been written in a way that would make it expect an item with attributes, making building of libc fail when this attribute was added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions