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

rustc: use Name numbers rather than the Show impl for constants. #16213

Merged
merged 1 commit into from
Aug 4, 2014

Conversation

huonw
Copy link
Member

@huonw huonw commented Aug 3, 2014

Using the Show impl for Names created global symbols with names like
"str\"str\"(1027)". This adjusts strings, binaries and vtables to
avoid using that impl.

@pnkfelix
Copy link
Member

pnkfelix commented Aug 3, 2014

This fixes ... #15799 ? I could have sworn there was another issue filed for this but I cannot find it.

@pnkfelix
Copy link
Member

pnkfelix commented Aug 3, 2014

The PR itself looks good, feel free to r=me after doing some due diligence looking for issues to tag as closed with this.

@huonw
Copy link
Member Author

huonw commented Aug 3, 2014

It does appear to fix that one (nice catch, I'd completely forgotten about that issue), but I can't find any others.

@lilyball
Copy link
Contributor

lilyball commented Aug 4, 2014

@pnkfelix This looks related to my recent #16153, which fixed this same issue for a bunch of other things.

FWIW you could switch to using gensym_name("binary") etc instead of calling token::gensym() directly. That would add a colon to the symbol, i.e. binary:1234 instead of binary1234, which may or may not be desired.

Using the Show impl for Names created global symbols with names like
`"str\"str\"(1027)"`. This adjusts strings, binaries and vtables to
avoid using that impl.

Fixes rust-lang#15799.
bors added a commit that referenced this pull request Aug 4, 2014
Using the Show impl for Names created global symbols with names like
`"str\"str\"(1027)"`. This adjusts strings, binaries and vtables to
avoid using that impl.
@bors bors closed this Aug 4, 2014
@bors bors merged commit e753dbb into rust-lang:master Aug 4, 2014
@huonw huonw deleted the more-token-numbers branch December 4, 2014 02:04
@huonw huonw restored the more-token-numbers branch December 4, 2014 02:04
@huonw huonw deleted the more-token-numbers branch December 4, 2014 02:04
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 8, 2024
…cola

chore: update docs/dev/guide.md based on 2024-01-01 release

Updates dev guide based on 2024-01-01 release
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