Skip to content

Commit 7f382ac

Browse files
committed
nit: continue using from_str_and_span as requested
1 parent ebe155a commit 7f382ac

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

compiler/rustc_builtin_macros/src/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pub(crate) fn expand_test_or_bench(
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.
211211
let param_name = format!("__bench_{}", fn_.ident.name);
212-
let bencher_param = Ident::new(Symbol::intern(&param_name), attr_sp);
212+
let bencher_param = Ident::from_str_and_span(&param_name, attr_sp);
213213
cx.expr_call(
214214
sp,
215215
cx.expr_path(test_path("StaticBenchFn")),

0 commit comments

Comments
 (0)