We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ex., this code:
#[cfg_attr(target_arch = "x86", path = "x86.rs")] #[cfg_attr(target_arch = "x86_64", path = "x86_64.rs")] mod imp;
results in this on rustc 1.12.0-nightly (576f76659 2016-08-09):
rustc 1.12.0-nightly (576f76659 2016-08-09)
warning: unused attribute, #[warn(unused_attributes)] on by default --> src/arch/mod.rs:7:36 | 7 | #[cfg_attr(target_arch = "x86", path = "x86.rs")] | ^^^^^^^^^^^^^^^^
(this is when building with target_arch = "x86", of course)
target_arch = "x86"
The text was updated successfully, but these errors were encountered:
#[cfg_attr]
path
cc @jseyfried
Sorry, something went wrong.
cfg_attr
Rollup merge of rust-lang#35617 - jseyfried:fix_unused_cfg_attr_path,…
fdce693
… r=eddyb Fix incorrect unused import warnings on `cfg_attr`ed `path` attributes Fixes rust-lang#35584. r? @eddyb
Auto merge of #35617 - jseyfried:fix_unused_cfg_attr_path, r=eddyb
1de5b7e
Fix incorrect unused import warnings on `cfg_attr`ed `path` attributes Fixes #35584. r? @eddyb
No branches or pull requests
Ex., this code:
results in this on
rustc 1.12.0-nightly (576f76659 2016-08-09)
:(this is when building with
target_arch = "x86"
, of course)The text was updated successfully, but these errors were encountered: