Skip to content

Commit 53718d2

Browse files
Allow incorrectly reported unused attribute warning
1 parent c115cc6 commit 53718d2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/rustc/rustc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
// Set the stack size at link time on Windows. See rustc_driver::in_rustc_thread
1515
// for the rationale.
16+
#[allow(unused_attributes)]
1617
#[cfg_attr(all(windows, target_env = "msvc"), link_args = "/STACK:16777216")]
1718
// We only build for msvc and gnu now, but we use a exhaustive condition here
1819
// so we can expect either the stack size to be set or the build fails.

src/tools/rustdoc/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
#![feature(link_args)]
12+
13+
#[allow(unused_attributes)]
1214
// Set the stack size at link time on Windows. See rustc_driver::in_rustc_thread
1315
// for the rationale.
1416
#[cfg_attr(all(windows, target_env = "msvc"), link_args = "/STACK:16777216")]

0 commit comments

Comments
 (0)