Skip to content

Conversation

@eddyb
Copy link
Member

@eddyb eddyb commented Nov 27, 2013

It's truly immutable now, which will allow us to remove some cloning in the parser and box parts of the AST in Rc<T> (if desired).

@sanxiyn
Copy link
Contributor

sanxiyn commented Nov 27, 2013

Is it possible to have a static assertion that AST is Freeze so that this does not regress? (Also Send in the future.)

@thestinger
Copy link
Contributor

@sanxiyn: yeah, that should be possible (@eddyb: can you add a libsyntax test passing the AST to a function requiring Freeze?)

bors added a commit that referenced this pull request Nov 27, 2013
It's truly immutable now, which will allow us to remove some cloning in the parser and box parts of the AST in `Rc<T>` (if desired).
@bors bors closed this Nov 27, 2013
@bors bors merged commit f09b7b0 into rust-lang:master Nov 27, 2013
@eddyb eddyb deleted the freeze-ast branch November 27, 2013 17:27
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

Successfully merging this pull request may close these issues.

4 participants