Skip to content

libsyntax cleanup episode 1 #7365

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
wants to merge 2 commits into from
Closed

libsyntax cleanup episode 1 #7365

wants to merge 2 commits into from

Conversation

emberian
Copy link
Member

Sets the stage for further cleanup (especially mass-slaughter of @)

@graydon
Copy link
Contributor

graydon commented Jun 25, 2013

Eek! I'm sorry, I didn't see you working on this. I started working on a higher-efficiency interner a while back already, just never cleaned it up. It keeps all the strings in one buffer, so no separate-allocations overhead. http://people.mozilla.org/~graydon/interner.rs

(I think we might also consider shifting to a model wherein all strings are "interned" as slices from file buffers, not (re)allocated strings at all, but that's another matter. It's how many other compilers work.)

@emberian
Copy link
Member Author

@graydon handily, it's easy to adapt, given that Interner is now a trait rather than some ad-hoc struct impl.

bors added a commit that referenced this pull request Jun 26, 2013
Sets the stage for further cleanup (especially mass-slaughter of `@`)
@bors bors closed this Jun 26, 2013
xFrednet pushed a commit to xFrednet/rust that referenced this pull request May 21, 2022
Fix `cmp_owned` on copy types

fixes rust-lang#8803
fixes rust-lang#7365

changelog: Don't lint `cmp_owned` on `From::from` for copy types
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.

3 participants