Thread (192 messages) 192 messages, 41 authors, 2022-10-16

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

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2021-04-14 19:20:39
Also in: linux-doc, linux-kbuild, lkml

On Wed, Apr 14, 2021 at 11:46 AM [off-list ref] 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 pattern
matching, but this _looks_ like these "panicking intrinsics" panic at
run-time (by calling BUG()).

Is there some way these things could cause built-time link errors
instead, so that if somebody uses 128-bit shifts, or floating point
ops in the rust code, they show up as build failures, not as run-time
ones?

Hmm?

          Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help