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
Wait, nevermind, this is still a problem; revised testcase:
#![feature(slice_patterns)]
fn main() {
let x: &[u32] = &[];
let (a, b) = match x { &[[a, ref b..]..] => (a, b) };
println!("{:08x}", a);
for x in b.iter().take(30) {
println!("{:08x}", x);
}
}
Activity
oli-obk commentedon Jun 10, 2015
This is very bad:
TheNeikos commentedon Jun 10, 2015
If I understand correctly this reads unitialized memory? Or rather, not owned memory?
bluss commentedon Jun 10, 2015
@TheNeikos yes. Fortunately it depends on a feature marked unstable.
TheNeikos commentedon Jun 10, 2015
@bluss Alright
eefriedman commentedon Jul 27, 2016
This is outdated since the slice pattern rewrite. Filed #35077 as a followup.
eefriedman commentedon Jul 27, 2016
Wait, nevermind, this is still a problem; revised testcase:
eefriedman commentedon Jul 27, 2016
Related miscompile:
MIR ICE:
7 remaining items