Skip to content

Commit

Permalink
Merge #933
Browse files Browse the repository at this point in the history
933: Rename autocfg probe method to _foo to avoid dead code warning r=cuviper a=danielframpton

If rayon is built in a configuration with warnings as error (e.g., `RUSTFLAGS=-Dwarnings`), then the probe will fail even though the compiler does have the necessary const generic support.

Co-authored-by: Daniel Frampton <Daniel.Frampton@microsoft.com>
  • Loading branch information
bors[bot] and danielframpton committed May 12, 2022
2 parents a866566 + 23bcb62 commit 9801de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Expand Up @@ -3,7 +3,7 @@ fn main() {
if ac.probe_expression("(0..10).step_by(2).rev()") {
autocfg::emit("has_step_by_rev");
}
if ac.probe_expression("{ fn foo<const N: usize>() {} }") {
if ac.probe_expression("{ fn _foo<const N: usize>() {} }") {
autocfg::emit("has_min_const_generics");
}
if ac.probe_path("std::ops::ControlFlow") {
Expand Down

0 comments on commit 9801de7

Please sign in to comment.