Closed
Description
The following code:
use std::rc::Rc
struct ProblemType {
children [Option<Rc<ProblemType>>; 8],
}
impl ProblemType {
fn breaks_compiler() -> Option<Rc<ProblemType>> {
None
}
}
Causes LLVM to fail an assertion, claiming:
rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/DataLayout.cpp:636: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.