Skip to content

Commit e00196d

Browse files
Lock down write_target_uint
This function has no external users at the moment, so lock it down. This logic can be derived from std methods, so it's no real loss.
1 parent f7c468f commit e00196d

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_middle/src/mir/interpret

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/mir/interpret/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -555,12 +555,12 @@ impl<'tcx> TyCtxt<'tcx> {
555555
////////////////////////////////////////////////////////////////////////////////
556556

557557
#[inline]
558-
pub fn write_target_uint(
558+
fn write_target_uint(
559559
endianness: Endian,
560560
mut target: &mut [u8],
561561
data: u128,
562562
) -> Result<(), io::Error> {
563-
// This u128 holds an "any-size uint" (since smaller uints can fits in it)
563+
// This u128 holds an "any-size uint" (since smaller uints can fit in it)
564564
// So we do not write all bytes of the u128, just the "payload".
565565
match endianness {
566566
Endian::Little => target.write(&data.to_le_bytes())?,

0 commit comments

Comments
 (0)