Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Multiple attributes are allowed on a single function #213

Closed
@jonas-schievink

Description

@jonas-schievink

...leading to incorrect error messages:

#[exception]
#[entry]
fn SVCall() -> ! {
    loop {}
}
error: `#[entry]` function must have signature `[unsafe] fn() -> !`
  --> examples/bug.rs:17:1
   |
17 | #[exception]
   | ^^^^^^^^^^^^

The function already has the signature that the error message demands, and the span points at the other attribute instead of the function.

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