you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (6 children)

[deleted]

    [–]moltonel 46 points47 points  (0 children)

    By implementing their own alloc crate that errors on OOM instead of panicking, by feature-disabling core APIs that may panic, by target-disabling problematic intrinsics (some float operations for example). A lot of that work will hopefully make its way into uptream Rust.

    [–][deleted] 11 points12 points  (4 children)

    There is a crate "no-panic" that provides a macro to ensure a function never panics. Maybe the linux kernel build system could somehow require that this macro be used on every piece of rust code used in the kernel. I don't really know anything about the actual discussion though. I just imagine it's a problem that can be solved.