diff options
| author | Ana-Maria Mihalache <mihalacheana.maria@yahoo.com> | 2020-03-23 13:18:51 +0000 |
|---|---|---|
| committer | Ana-Maria Mihalache <mihalacheana.maria@yahoo.com> | 2020-03-23 13:18:51 +0000 |
| commit | 403ba610c8d5f067f840a1a485d0fd32b19c79a9 (patch) | |
| tree | 45e4741f2ed592f05dd4a422b879c73c18d694cc | |
| parent | 8ff785011be6625e32afceee3a08e5cff7470feb (diff) | |
| download | rust-403ba610c8d5f067f840a1a485d0fd32b19c79a9.tar.gz rust-403ba610c8d5f067f840a1a485d0fd32b19c79a9.zip | |
Rename remaining occurences of Void to Opaque.
| -rw-r--r-- | src/libcore/fmt/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index a93b34fc46c..fe728d42c76 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -282,10 +282,10 @@ impl<'a> ArgumentV1<'a> { // SAFETY: `mem::transmute(x)` is safe because // 1. `&'b T` keeps the lifetime it originated with `'b` // (so as to not have an unbounded lifetime) - // 2. `&'b T` and `&'b Void` have the same memory layout + // 2. `&'b T` and `&'b Opaque` have the same memory layout // (when `T` is `Sized`, as it is here) // `mem::transmute(f)` is safe since `fn(&T, &mut Formatter<'_>) -> Result` - // and `fn(&Void, &mut Formatter<'_>) -> Result` have the same ABI + // and `fn(&Opaque, &mut Formatter<'_>) -> Result` have the same ABI // (as long as `T` is `Sized`) unsafe { ArgumentV1 { formatter: mem::transmute(f), value: mem::transmute(x) } } } |
