]> git.lizzy.rs Git - rust.git/commitdiff
Allow incorrectly reported unused attribute warning
authorMark Simulacrum <mark.simulacrum@gmail.com>
Mon, 9 Apr 2018 17:21:43 +0000 (11:21 -0600)
committerMark Simulacrum <mark.simulacrum@gmail.com>
Wed, 11 Apr 2018 02:04:57 +0000 (20:04 -0600)
src/rustc/rustc.rs
src/tools/rustdoc/main.rs

index 9fa33f911a1686f8118a3f31bbf6dde38578d653..a888838ce432cb1fa44e8f738406961ede720674 100644 (file)
@@ -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.
index e726dea84f103d65d97e0f8503abde4a0111e1ab..7aca765cead8c48f8794901cf33813ba199e9fca 100644 (file)
@@ -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")]