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

Use a specialized string interner to reduce the need for owned strings #6356

Closed
wants to merge 1 commit into from

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented May 9, 2013

&str can be turned into @~str on demand, using to_owned(), so for
strings, we can create a specialized interner that accepts &str for
intern() and find() but stores and returns @~str.

&str can be turned into @~str on demand, using to_owned(), so for
strings, we can create a specialized interner that accepts &str for
intern() and find() but stores and returns @~str.
@brson
Copy link
Contributor

brson commented May 10, 2013

Good riddance to allocated strings! 🌵

bors added a commit that referenced this pull request May 10, 2013
&str can be turned into @~str on demand, using to_owned(), so for
strings, we can create a specialized interner that accepts &str for
intern() and find() but stores and returns @~str.
@bors bors closed this May 10, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 4, 2022
…endoo

Don't lint `useless_transmute` on types with erased regions

fixes rust-lang#6356
fixes rust-lang#3340
fixes rust-lang#2906

This should get a proper fix at some point, but this at least gets the lint running on some types.

cc rust-lang#5343

changelog: Don't lint `useless_transmute` on types with erased regions
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