You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is just some experimentation on my part that triggered an ICE. I may have time to investigate later but for now here is the smallest chunk of code I have and a playground session.
use std::thunk::Thunk;
use std::cell::UnsafeCell;
use std::mem::transmute;
struct Lazy<T> {
value: UnsafeCell<Option<T>>,
thunk: UnsafeCell<Option<Thunk<(), T>>>,
}
impl<T> Lazy<T> {
fn value(&self) -> &T {
unsafe {
let value = self.value.get();
// deleted some code here
let raw_value = &(*value).unwrap();
transmute(raw_value)
}
}
}
fn main() {
}
This is just some experimentation on my part that triggered an ICE. I may have time to investigate later but for now here is the smallest chunk of code I have and a playground session.
http://is.gd/L2RIMD
The text was updated successfully, but these errors were encountered: