Skip to content

Narrow down the list of targets #[link_section] and other link attributes can be applied to #147432

@JonathanBrouwer

Description

@JonathanBrouwer

The #147418 PR restores the old behaviour of link_section, in that you can apply it to all method-like things, including trait methods without a default implementation.

We should take a look at the implementation to see which targets actually have an effect, and only allow those.

@rustbot claim

Metadata

Metadata

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.T-compilerRelevant to the compiler 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