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 50e1b4b commit fdf1ca4Copy full SHA for fdf1ca4
compiler/rustc_builtin_macros/src/test.rs
@@ -207,7 +207,7 @@ pub(crate) fn expand_test_or_bench(
207
};
208
209
let test_fn = if is_bench {
210
- // A collision-resistant ident for a lambda, using the user's function name within it to avoid collisions.
+ // avoid name collisions by using the function name within the identifier, see bug #148275
211
let bencher_param =
212
Ident::from_str_and_span(&format!("__bench_{}", fn_.ident.name), attr_sp);
213
cx.expr_call(
0 commit comments