Skip to content

Program printer: Use Debug to print concrete consts #641

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

Merged
merged 1 commit into from
Oct 30, 2020

Conversation

flodiebold
Copy link
Member

Most importantly, we shouldn't panic for them. I was considering requiring Interner::InternedConcreteConst to implement Display, but it already requires Debug and I think that may be a better choice anyway. Of course this may result in an invalid program being printed, but that's still better than panicking.

Most importantly, we shouldn't panic for them. I was considering requiring
`Interner::InternedConcreteConst` to implement `Display`, but it already
requires `Debug` and I think that may be a better choice anyway. Of course this
may result in an invalid program being printed, but that's still better than
panicking.
@jackh726
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Oct 30, 2020

📌 Commit 305eb02 has been approved by jackh726

@bors
Copy link
Contributor

bors commented Oct 30, 2020

⌛ Testing commit 305eb02 with merge fe677b6...

@bors
Copy link
Contributor

bors commented Oct 30, 2020

☀️ Test successful - checks-actions
Approved by: jackh726
Pushing fe677b6 to master...

@bors bors merged commit fe677b6 into rust-lang:master Oct 30, 2020
@flodiebold flodiebold deleted the print-concrete-const branch October 30, 2020 20:17
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