Skip to content

Commit

Permalink
Rename probe method to _foo to avoid dead code warning
Browse files Browse the repository at this point in the history
  • Loading branch information
danielframpton committed May 7, 2022
1 parent 9dc52d7 commit 23bcb62
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 23bcb62

Please sign in to comment.