We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7c468f commit e00196dCopy full SHA for e00196d
compiler/rustc_middle/src/mir/interpret/mod.rs
@@ -555,12 +555,12 @@ impl<'tcx> TyCtxt<'tcx> {
555
////////////////////////////////////////////////////////////////////////////////
556
557
#[inline]
558
-pub fn write_target_uint(
+fn write_target_uint(
559
endianness: Endian,
560
mut target: &mut [u8],
561
data: u128,
562
) -> Result<(), io::Error> {
563
- // This u128 holds an "any-size uint" (since smaller uints can fits in it)
+ // This u128 holds an "any-size uint" (since smaller uints can fit in it)
564
// So we do not write all bytes of the u128, just the "payload".
565
match endianness {
566
Endian::Little => target.write(&data.to_le_bytes())?,
0 commit comments