Skip to content

Develop some combined infrastructure for command-line switches and crate attributes #1632

Closed
@brson

Description

@brson

We are beginning to grow some crate attributes that affect compilation, such as #[crate_type], #[lint(no_ctypes)], #no_core. These are sprouting up in an add-hoc way and usually have corresponding command-line switches.

We should have some mechanism that makes it easy to define these and merge them into the session. Various things that are currently command line switches might ought to have crate attributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-driverArea: rustc_driver that ties everything together into the `rustc` compilerC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions