~/lightning

Lightning Talk: Rust Without ‘Unsafe’ Is as Unsafe as C++

Lightningat C++Online 2024 · 2024-02-28..03-02· [rust, c-and-cpp]
links:none on file
slides:none on file

Shows a concrete example that produces a dangling reference in safe Rust by using ordinary borrow/bind syntax plus a small macro that hides temporaries so a reference is bound to an object that is dropped at scope end. The code prints garbage rather than crashing, demonstrating a reproducible safety hole without writing any unsafe code. The issue traces back to 2015 and remains unresolved, so the demo actually compiles and runs and exposes a borrow checker bypass in current Rust.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.