File tree 1 file changed +2
-2
lines changed
compiler/stable_mir/src/mir
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ impl IndexedVal for AllocId {
55
55
/// Utility function used to read an allocation data into a unassigned integer.
56
56
pub ( crate ) fn read_target_uint ( mut bytes : & [ u8 ] ) -> Result < u128 , Error > {
57
57
let mut buf = [ 0u8 ; std:: mem:: size_of :: < u128 > ( ) ] ;
58
- match MachineInfo :: target_endianess ( ) {
58
+ match MachineInfo :: target_endianness ( ) {
59
59
Endian :: Little => {
60
60
bytes. read ( & mut buf) ?;
61
61
Ok ( u128:: from_le_bytes ( buf) )
@@ -70,7 +70,7 @@ pub(crate) fn read_target_uint(mut bytes: &[u8]) -> Result<u128, Error> {
70
70
/// Utility function used to read an allocation data into an assigned integer.
71
71
pub ( crate ) fn read_target_int ( mut bytes : & [ u8 ] ) -> Result < i128 , Error > {
72
72
let mut buf = [ 0u8 ; std:: mem:: size_of :: < i128 > ( ) ] ;
73
- match MachineInfo :: target_endianess ( ) {
73
+ match MachineInfo :: target_endianness ( ) {
74
74
Endian :: Little => {
75
75
bytes. read ( & mut buf) ?;
76
76
Ok ( i128:: from_le_bytes ( buf) )
You can’t perform that action at this time.
0 commit comments