Skip to content

Freeze the AST by removing a couple of unused @mut ~[T] from token_tree. #10693

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

Merged
merged 1 commit into from
Nov 27, 2013

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
Member

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