Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
extern
on the pub fn rust_oom
lang item in libstd, to matc…
…h ABI of the declaration in liballoc This turned out to be important on Windows. Calling `handle_alloc_error(Layout::new::<[u8; 42]>())` caused: ``` Exception thrown at 0x00007FF7C70DC399 in a.exe: 0xC0000005: Access violation reading location 0x000000000000002A. ``` 0x2A equals 42, so it looks like the `Layout::size` field of type `usize` was interpreted as a pointer to read from.
- Loading branch information