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

repr should use the expression form of types (:: before <) #9405

Closed
jruderman opened this issue Sep 22, 2013 · 2 comments
Closed

repr should use the expression form of types (:: before <) #9405

jruderman opened this issue Sep 22, 2013 · 2 comments

Comments

@jruderman
Copy link
Contributor

range(0, 10)

prints as

std::iter::Range<int>{state: 0, stop: 10, one: 1}

it should print as

std::iter::Range::<int>{state: 0, stop: 10, one: 1}
@thestinger
Copy link
Contributor

repr is never going to print entirely valid Rust code, so it might not be worth doing this

@emberian
Copy link
Member

I don't think this is worth doing.

flip1995 pushed a commit to flip1995/rust that referenced this issue Sep 9, 2022
Correctly handle unescape warnings

fixes rust-lang#9405

changelog: Fix ICE when format literals raise compiler warnings
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

No branches or pull requests

3 participants