Skip to content

Commit

Permalink
Allow incorrectly reported unused attribute warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Apr 11, 2018
1 parent c115cc6 commit 53718d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rustc/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/tools/rustdoc/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 53718d2

Please sign in to comment.