Skip to content
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

Resources can't be put into tags #993

Closed
brson opened this issue Sep 28, 2011 · 5 comments
Closed

Resources can't be put into tags #993

brson opened this issue Sep 28, 2011 · 5 comments

Comments

@brson
Copy link
Contributor

brson commented Sep 28, 2011

    tag t {
        t0(r);
    }

    let i = @mutable 0;
    {
        let a <- t0(r(i));
    }
    assert *i == 1;

This performs a copy of r(i). With other types, e.g. {a: r(i)} trans optimizes this to a move, so kind analysis allows it.

@brson
Copy link
Contributor Author

brson commented Sep 28, 2011

There's a commented out test for this in run-pass/init-res-into-things.rs

@brson
Copy link
Contributor Author

brson commented Sep 28, 2011

Related to #979

@marijnh
Copy link
Contributor

marijnh commented Nov 15, 2011

Superseded by #1177

@marijnh marijnh closed this as completed Nov 15, 2011
@brson
Copy link
Contributor Author

brson commented Nov 15, 2011

Is this fixed?

@marijnh
Copy link
Contributor

marijnh commented Nov 15, 2011

Not yet. It will be fixed when #1177 is closed.

ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants