From 23bcb624acb02461818c13a35f594e6fb7fa6e37 Mon Sep 17 00:00:00 2001 From: Daniel Frampton Date: Sat, 7 May 2022 14:38:43 -0700 Subject: [PATCH] Rename probe method to _foo to avoid dead code warning --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 1623bea5c..f38f6ffb4 100644 --- a/build.rs +++ b/build.rs @@ -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() {} }") { + if ac.probe_expression("{ fn _foo() {} }") { autocfg::emit("has_min_const_generics"); } if ac.probe_path("std::ops::ControlFlow") {