This test case (a permutation of const-autoderef.rs) causes rustc to segfault (somewhere in LLVM):
static B: u8 = (&A)[0];
static A: [u8; 1] = ['h' as u8];
static D: u8 = (&C)[0];
static C: &'static &'static &'static &'static [u8; 1] = & & & &A;
pub fn main() {
assert_eq!(B, A[0]);
assert_eq!(D, A[0]);
}
Uncovered while working on separating items from HIR, since the new visitors can sometimes visit items in different orders (unless you force them to do otherwise).
This test case (a permutation of
const-autoderef.rs) causes rustc to segfault (somewhere in LLVM):Uncovered while working on separating items from HIR, since the new visitors can sometimes visit items in different orders (unless you force them to do otherwise).