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 <[email protected]>
  • Loading branch information
bors[bot] and danielframpton authored 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
Original file line number Diff line number Diff line change
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.