mozilla/rust — Issue #1632: Develop some combined infrastructure for command-line switches and crate attributes
Author: brson
Created: 2012-01-24 05:23:22+00:00
State: open

We are beginning to grow some crate attributes that affect compilation, such as #[crate_type], #[lint(no_ctypes)], #[no_core] (#1625). 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.