News for hackers. Stuff that matters.
Re:Rust, Lifetimes, and Collections by Hemospectrum on Wednesday November 19, 2014 @12:43PM (#8631407)
It bubbles up as far as an `unsafe { ... }` block, but no higher.
Re:Rust, Lifetimes, and Collections by vutekst on Wednesday November 19, 2014 @12:47PM (#8631432)
Yes, presuming that the author of the unsafe code in question has manually verified the effective safety in all relevant scenarios. `unsafe` is an assertion to the Rust compiler that you know what you're doing, and you will preserve its guarantees as far as external observers are concerned.

I might point out to the grandparent post that even the basic vector collection in Rust is full of unsafe {} blocks.

Re:Rust, Lifetimes, and Collections by rdtsc on Wednesday November 19, 2014 @12:51PM (#8631457)
I understand now, thanks for explaining. It was implied in the article too, by analogy with java's exceptions, I just forgot how that works too.