Skip to content

Commit fdf1ca4

Browse files
committed
update comment again as requested
1 parent 50e1b4b commit fdf1ca4

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
@@ -207,7 +207,7 @@ pub(crate) fn expand_test_or_bench(
207207
};
208208

209209
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.
210+
// avoid name collisions by using the function name within the identifier, see bug #148275
211211
let bencher_param =
212212
Ident::from_str_and_span(&format!("__bench_{}", fn_.ident.name), attr_sp);
213213
cx.expr_call(

0 commit comments

Comments
 (0)