Uh oh!
There was an error while loading. Please reload this page.
Use a specialized string interner to reduce the need for owned strings - #6356
Closed
dotdash wants to merge 1 commit into
Closed
Use a specialized string interner to reduce the need for owned strings#6356dotdash wants to merge 1 commit into
dotdash wants to merge 1 commit into
Conversation
&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
commented
May 10, 2013
Contributor
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.
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 fixesrust-lang#6356fixesrust-lang#3340fixesrust-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
U007D pushed a commit
to U007D/rust-mos
that referenced
this pull request
Aug 21, 2026
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
U007D pushed a commit
to U007D/rust-mos
that referenced
this pull request
Aug 21, 2026
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
U007D pushed a commit
to U007D/rust-mos
that referenced
this pull request
Aug 21, 2026
6384: add doctest runnables on struct r=lnicola a=bnjjj I will check for how to do the same on trait implementation on another PR. rust-lang#6356 Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
U007D pushed a commit
to U007D/rust-mos
that referenced
this pull request
Aug 21, 2026
8952: add support of impl block for doctest into runnables r=matklad a=bnjjj closerust-lang#6356 Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
&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.