We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f382ac commit 595f084Copy full SHA for 595f084
compiler/rustc_builtin_macros/src/test.rs
@@ -208,8 +208,8 @@ pub(crate) fn expand_test_or_bench(
208
209
let test_fn = if is_bench {
210
// A simple ident for a lambda, using the user's function name within it to avoid collisions.
211
- let param_name = format!("__bench_{}", fn_.ident.name);
212
- let bencher_param = Ident::from_str_and_span(¶m_name, attr_sp);
+ let bencher_param =
+ Ident::from_str_and_span(&format!("__bench_{}", fn_.ident.name), attr_sp);
213
cx.expr_call(
214
sp,
215
cx.expr_path(test_path("StaticBenchFn")),
0 commit comments