Following program segfaults using rust 0.5 on Fedora 17: extern mod std; use core::task::_; use std::_; fn main() { let value = 0; let marc = arc::MutexARC(value); for int::range(0, 5) |_| { do spawn { do marc.access |v| { *v += 1; } } } }
Activity
thestinger commentedon Mar 17, 2013
@danglick: The code doesn't compile with master/incoming.
danglick commentedon Mar 17, 2013
Sorry, rust newbie error, I was missing the call to marc.clone(). Glad that the compiler has now been fixed to protect me from myself. :)
Rollup merge of rust-lang#5419 - dtolnay:unreadable, r=flip1995
Auto merge of rust-lang#5438 - flip1995:rollup-pi762oy, r=flip1995
Merge pull request rust-lang#5419 from rust-lang/rustup-2026-10-15