Develop some combined infrastructure for command-line switches and crate attributes #1632
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-driver
Area: rustc_driver that ties everything together into the `rustc` compiler
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
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.
The text was updated successfully, but these errors were encountered: