Skip to content

automock should strip #[link_name = "..."] #502

Closed
@corecode

Description

@corecode

Building mocks for bindgen output for inline static functions results in:

warning: attribute should be applied to a foreign function or static
     --> bindings.rs:58960:5
      |
57180 | #[mockall::automock]
      | -------------------- not a foreign function or static
...
58960 |     #[link_name = "FooName__extern"]
      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |
      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions