diff options
| author | bors <bors@rust-lang.org> | 2024-09-28 07:47:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-28 07:47:26 +0000 |
| commit | 150247c338a54cb3d08614d8530d1bb491fa90db (patch) | |
| tree | 133768362239bba9e218e5ac293344236a1868ac | |
| parent | 851f698682aa2e4c226e1a2c1af30adbcb63aae2 (diff) | |
| parent | f21f4cd60e764f4e6a37cb9d7cc1b1445ad3044f (diff) | |
| download | rust-150247c338a54cb3d08614d8530d1bb491fa90db.tar.gz rust-150247c338a54cb3d08614d8530d1bb491fa90db.zip | |
Auto merge of #130897 - workingjubilee:dump-hexes-with-class, r=thomcc
library: Compute `RUST_EXCEPTION_CLASS` from native-endian bytes This makes it appear correctly in hexdumps on both LE and BE platforms.
| -rw-r--r-- | library/panic_unwind/src/gcc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/panic_unwind/src/gcc.rs b/library/panic_unwind/src/gcc.rs index 89b44338d6b..925af6c0832 100644 --- a/library/panic_unwind/src/gcc.rs +++ b/library/panic_unwind/src/gcc.rs @@ -107,4 +107,4 @@ pub unsafe fn cleanup(ptr: *mut u8) -> Box<dyn Any + Send> { // Rust's exception class identifier. This is used by personality routines to // determine whether the exception was thrown by their own runtime. -const RUST_EXCEPTION_CLASS: uw::_Unwind_Exception_Class = u64::from_be_bytes(*b"MOZ\0RUST"); +const RUST_EXCEPTION_CLASS: uw::_Unwind_Exception_Class = u64::from_ne_bytes(*b"MOZ\0RUST"); |
