Re: [PATCH 05/13] Rust: Compiler builtins crate

2021-04-14 Thread Miguel Ojeda
On Wed, Apr 14, 2021 at 9:19 PM Linus Torvalds wrote: > > Not being a Rust person, I can only guess based on random pattern > matching, but this _looks_ like these "panicking intrinsics" panic at > run-time (by calling BUG()). Your pattern matching works well :) > Is there some way these things

Re: [PATCH 05/13] Rust: Compiler builtins crate

2021-04-14 Thread Linus Torvalds
On Wed, Apr 14, 2021 at 11:46 AM wrote: > > We also need a helpers C source file to contain some forwarders > to C macros and inlined functions. For the moment, we only need it > to call the `BUG()` macro, but we will be adding more later. Not being a Rust person, I can only guess based on random

[PATCH 05/13] Rust: Compiler builtins crate

2021-04-14 Thread ojeda
From: Miguel Ojeda Rust provides `compiler_builtins` as a port of LLVM's `compiler-rt`. Since we do not need the vast majority of them, we avoid the dependency by providing our own crate. We also need a helpers C source file to contain some forwarders to C macros and inlined functions. For the m