-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Show the sign for signed ops on exact_div
#66148
Conversation
|
No please. :) I think Surely we can de-dup some other way without adding those impls... ^^ |
I have no idea what this means... |
When I was refactoring libsyntax, there were a bunch of implicit dependencies on e.g.
Ah OK, great. |
@oli-obk For Also see #65859, that code also pretty-prints MIR values, so probably all of these cases should share code. |
☔ The latest upstream changes (presumably #66243) made this pull request unmergeable. Please resolve the merge conflicts. |
4792b7d
to
7d0fcc6
Compare
☔ The latest upstream changes (presumably #66578) made this pull request unmergeable. Please resolve the merge conflicts. |
7d0fcc6
to
a329756
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! r=me, but it'd be even better if you could add a test (at least for the sign part) in-tree.
@bors r+ |
📌 Commit a329756 has been approved by |
Show the sign for signed ops on `exact_div` r? @RalfJung Cc https://github.com/rust-lang/miri/pull/961/files#r341842128 I'm fairly unhappy with the duplication and the general effort required for this. Maybe it would be better to add a `display` impl for `ImmTy`?
Rollup of 6 pull requests Successful merges: - #66148 (Show the sign for signed ops on `exact_div`) - #66651 (Add `enclosing scope` parameter to `rustc_on_unimplemented`) - #66904 (Adding docs for keyword match, move) - #66935 (syntax: Unify macro and attribute arguments in AST) - #66941 (Remove `ord` lang item) - #66967 (Remove hack for top-level or-patterns in match checking) Failed merges: r? @ghost
Oh... XD I was working locally on deduplicating the rendering logic from this with the one from constants. I'll open a separate PR and that will also have tests for rustc then |
r? @RalfJung Cc https://github.com/rust-lang/miri/pull/961/files#r341842128
I'm fairly unhappy with the duplication and the general effort required for this.
Maybe it would be better to add a
display
impl forImmTy
?