Skip to content

Using #[inline] on function prototype should emit a warning #51280

Description

@Havvy

The following trait does not emit any warnings, although it should warn that the #[inline] hint is ignored on function prototypes.

trait Trait {
    #[inline]
    fn function();
}

Likewise for extern functions. E.g. should warn on

extern {
  #[inline] fn function();
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsC-feature-requestCategory: A feature request, i.e: not implemented / a PR.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions