fn oom_handler() -> ! {
        use intrinsics;
        let msg = "fatal runtime error: out of memory\n";
        unsafe {
            libc::write(libc::STDERR_FILENO,
                        msg.as_ptr() as *const libc::c_void,
                        msg.len() as libc::size_t);
            intrinsics::abort();
        }
    }
// A nicer handler for out-of-memory situations than the default one. This
// one prints a message to stderr before aborting. It is critical that this
// code does not allocate any memory since we are in an OOM situation. Any
// errors are ignored while printing since there's nothing we can do about
// them and we are about to exit anyways.
A nicer handler for out-of-memory situations than the default one. This
one prints a message to stderr before aborting. It is critical that this
code does not allocate any memory since we are in an OOM situation. Any
errors are ignored while printing since there's nothing we can do about
them and we are about to exit anyways.
A nicer handler for out - of - memory situations than the default one . This one prints a message to stderr before aborting . It is critical that this code does not allocate any memory since we are in an OOM situation . Any errors are ignored while printing since there ' s nothing we can do about them and we are about to exit anyways .
fn oom_handler() -> ! {
        use intrinsics;
        let msg = "fatal runtime error: out of memory\n";
        unsafe {
            libc::write(libc::STDERR_FILENO,
                        msg.as_ptr() as *const libc::c_void,
                        msg.len() as libc::size_t);
            intrinsics::abort();
        }
    }
fn oom_handler ( ) -> ! { use intrinsics ; let msg = " \n " ; unsafe { libc :: write ( libc :: STDERR_FILENO , msg . as_ptr ( ) as * const libc :: c_void , msg . len ( ) as libc :: size_t ) ; intrinsics :: abort ( ) ; } }
A nicer handler for out-of-memory situations than the default one.
A nicer handler for out - of - memory situations than the default one .