3 ms·
I'm just curious what would a panic!() in Rust kernel code look like - an oops log in dmesg? panics happen in Rust for example to handle indexing out of bounds
by kzrdude 4y ago
I'm just curious what would a panic!() in Rust kernel code look like - an oops log in dmesg? panics happen in Rust for example to handle indexing out of bounds errors with the default bounds checking or to guard against divide by zero.
- steveklabnik 4y agohttps://github.com/Rust-for-Linux/linux/blob/rust/rust/kernel/lib.rs#L250-L260 https://github.com/Rust-for-Linux/linux/blob/rust/rust/kerne...