3 ms·
Wouldn't it be possible to make gcc (optionally?) add https://docs.rs/no-panic/latest/no_panic/ https://docs.rs/no-panic/latest/no_panic/ to every function it c
by brabel 4y ago
Wouldn't it be possible to make gcc (optionally?) add https://docs.rs/no-panic/latest/no_panic/ https://docs.rs/no-panic/latest/no_panic/ to every function it compiles? Sure, that may make most Rust code not compile, but for kernel devs, this may not be too much of a hindrance as they may only use a small subset of crates which could be all made compile with this option.
- selfmodruntime 4y agoIf you read the caveats section of the crate, you will find that it is quite limited in its capabilities. I firmly believe that panic-free guarantees need to be built into the compiler with a special flag.