File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -282,10 +282,10 @@ impl<'a> ArgumentV1<'a> {
282
282
// SAFETY: `mem::transmute(x)` is safe because
283
283
// 1. `&'b T` keeps the lifetime it originated with `'b`
284
284
// (so as to not have an unbounded lifetime)
285
- // 2. `&'b T` and `&'b Void ` have the same memory layout
285
+ // 2. `&'b T` and `&'b Opaque ` have the same memory layout
286
286
// (when `T` is `Sized`, as it is here)
287
287
// `mem::transmute(f)` is safe since `fn(&T, &mut Formatter<'_>) -> Result`
288
- // and `fn(&Void , &mut Formatter<'_>) -> Result` have the same ABI
288
+ // and `fn(&Opaque , &mut Formatter<'_>) -> Result` have the same ABI
289
289
// (as long as `T` is `Sized`)
290
290
unsafe { ArgumentV1 { formatter : mem:: transmute ( f) , value : mem:: transmute ( x) } }
291
291
}
You can’t perform that action at this time.
0 commit comments