]> git.lizzy.rs Git - rust.git/commitdiff
Rename remaining occurences of Void to Opaque.
authorAna-Maria Mihalache <mihalacheana.maria@yahoo.com>
Mon, 23 Mar 2020 13:18:51 +0000 (13:18 +0000)
committerAna-Maria Mihalache <mihalacheana.maria@yahoo.com>
Mon, 23 Mar 2020 13:18:51 +0000 (13:18 +0000)
src/libcore/fmt/mod.rs

index a93b34fc46cb935294d5f304d18771e47eeb4dd4..fe728d42c76f7be47735240e3cf98d1a4de1eafd 100644 (file)
@@ -282,10 +282,10 @@ pub fn new<'b, T>(x: &'b T, f: fn(&T, &mut Formatter<'_>) -> Result) -> Argument
         // 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) } }
     }