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 ebe155a commit 7f382acCopy full SHA for 7f382ac
compiler/rustc_builtin_macros/src/test.rs
@@ -209,7 +209,7 @@ pub(crate) fn expand_test_or_bench(
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::new(Symbol::intern(¶m_name), attr_sp);
+ let bencher_param = Ident::from_str_and_span(¶m_name, attr_sp);
213
cx.expr_call(
214
sp,
215
cx.expr_path(test_path("StaticBenchFn")),
0 commit comments