Conversation
There was a problem hiding this comment.
Can this early-return index, without going through read_discriminant_value?
There was a problem hiding this comment.
I'm not sure the comment is correct. Also, read_discriminant_as_variant_index seems slightly better as a name?
There was a problem hiding this comment.
Please call the layout/codegen/memory counterpart "tag" not "discriminant".
There was a problem hiding this comment.
Are there no helpers in miri to do "integer casts" (zext/sext/trunc) without repeating these bitops all over the place?
There was a problem hiding this comment.
nope ^^ I'll take my own advice and open an easy issue
There was a problem hiding this comment.
This should also use "discriminant" vs "tag" terminology. Also, I wish the discr field in Variants::Tagged was called tag.
|
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
I created a long lived branch in the miri repo which we're going to merge, not rebase or force-push in any other way. |
|
☔ The latest upstream changes (presumably #49949) made this pull request unmergeable. Please resolve the merge conflicts. |
|
☔ The latest upstream changes (presumably #50056) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@bors r+ |
|
📌 Commit 3084c06 has been approved by |
|
☀️ Test successful - status-appveyor, status-travis |
Tested on commit rust-lang/rust@f5203d1. Direct link to PR: <rust-lang/rust#49933> 🎉 miri on windows: build-fail → test-fail. 🎉 miri on linux: build-fail → test-fail.
r? @eddyb
cc @bjorn3
fixes #49777