Skip to content

It should be an error to have #[inline] on trait methods #47475

Closed
@Boscop

Description

@Boscop

It should be an error to have #[inline] on trait methods because #[inline] should be on the impl.
Otherwise it has no effect and leads people to think they are inlining when they aren't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-langRelevant to the language team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions