We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ff7850 commit 403ba61Copy full SHA for 403ba61
src/libcore/fmt/mod.rs
@@ -282,10 +282,10 @@ impl<'a> ArgumentV1<'a> {
282
// SAFETY: `mem::transmute(x)` is safe because
283
// 1. `&'b T` keeps the lifetime it originated with `'b`
284
// (so as to not have an unbounded lifetime)
285
- // 2. `&'b T` and `&'b Void` have the same memory layout
+ // 2. `&'b T` and `&'b Opaque` have the same memory layout
286
// (when `T` is `Sized`, as it is here)
287
// `mem::transmute(f)` is safe since `fn(&T, &mut Formatter<'_>) -> Result`
288
- // and `fn(&Void, &mut Formatter<'_>) -> Result` have the same ABI
+ // and `fn(&Opaque, &mut Formatter<'_>) -> Result` have the same ABI
289
// (as long as `T` is `Sized`)
290
unsafe { ArgumentV1 { formatter: mem::transmute(f), value: mem::transmute(x) } }
291
}
0 commit comments