Skip to content

Commit 595f084

Browse files
committed
inline param_name as requested
1 parent 7f382ac commit 595f084

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_builtin_macros/src

1 file changed

+2
-2
lines changed

compiler/rustc_builtin_macros/src/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ pub(crate) fn expand_test_or_bench(
208208

209209
let test_fn = if is_bench {
210210
// 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(&param_name, attr_sp);
211+
let bencher_param =
212+
Ident::from_str_and_span(&format!("__bench_{}", fn_.ident.name), attr_sp);
213213
cx.expr_call(
214214
sp,
215215
cx.expr_path(test_path("StaticBenchFn")),

0 commit comments

Comments
 (0)