diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2018-04-09 11:21:43 -0600 |
|---|---|---|
| committer | Mark Simulacrum <mark.simulacrum@gmail.com> | 2018-04-10 20:04:57 -0600 |
| commit | 53718d2ef1729c987531dc94971c905815daef55 (patch) | |
| tree | e8ca712bf480cd5a6138f4cc4e46c88d620ff8ee | |
| parent | c115cc655c8bb3077ff349e4ddd704a2239438a6 (diff) | |
| download | rust-53718d2ef1729c987531dc94971c905815daef55.tar.gz rust-53718d2ef1729c987531dc94971c905815daef55.zip | |
Allow incorrectly reported unused attribute warning
| -rw-r--r-- | src/rustc/rustc.rs | 1 | ||||
| -rw-r--r-- | src/tools/rustdoc/main.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/rustc/rustc.rs b/src/rustc/rustc.rs index 9fa33f911a1..a888838ce43 100644 --- a/src/rustc/rustc.rs +++ b/src/rustc/rustc.rs @@ -13,6 +13,7 @@ // Set the stack size at link time on Windows. See rustc_driver::in_rustc_thread // for the rationale. +#[allow(unused_attributes)] #[cfg_attr(all(windows, target_env = "msvc"), link_args = "/STACK:16777216")] // We only build for msvc and gnu now, but we use a exhaustive condition here // so we can expect either the stack size to be set or the build fails. diff --git a/src/tools/rustdoc/main.rs b/src/tools/rustdoc/main.rs index e726dea84f1..7aca765cead 100644 --- a/src/tools/rustdoc/main.rs +++ b/src/tools/rustdoc/main.rs @@ -9,6 +9,8 @@ // except according to those terms. #![feature(link_args)] + +#[allow(unused_attributes)] // Set the stack size at link time on Windows. See rustc_driver::in_rustc_thread // for the rationale. #[cfg_attr(all(windows, target_env = "msvc"), link_args = "/STACK:16777216")] |
