Skip to content

Write barriers don't work for @mut #4825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pcwalton opened this issue Feb 7, 2013 · 0 comments
Closed

Write barriers don't work for @mut #4825

pcwalton opened this issue Feb 7, 2013 · 0 comments
Labels
A-lifetimes Area: Lifetimes / regions A-type-system Area: Type system
Milestone

Comments

@pcwalton
Copy link
Contributor

pcwalton commented Feb 7, 2013

cc @nikomatsakis

Test case:

struct Foo {
    x: ~[int]
}

fn main() {
    let x = @mut Foo { x: ~[ 1, 2, 3, 4, 5 ] };
    for x.x.each |x| {
        io::println(x.to_str());
    }
}
pcwalton added a commit to pcwalton/rust that referenced this issue Feb 7, 2013

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…ring purity. Closes rust-lang#4825.
@sanxiyn sanxiyn closed this as completed Apr 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

2 participants