Skip to content

Get rid of the Scalar and ScalarPair variants of ConstValue...#55260

Closed
oli-obk wants to merge 24 commits intorust-lang:masterfrom
oli-obk:by_ref_all_the_consts
Closed

Get rid of the Scalar and ScalarPair variants of ConstValue...#55260
oli-obk wants to merge 24 commits intorust-lang:masterfrom
oli-obk:by_ref_all_the_consts

Conversation

@oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Oct 22, 2018

... by always using ByRef and reading the scalars from the backing Allocation where desired

Oh god this uncovered so many bugs and bugs-just-waiting-to-happen. I'm still not fully done, but I don't want to grow this PR any further. It is in a sane state except for the const_field function, which was hacky to begin with.

fixes #54738

r? @RalfJung

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split ConstValue

8 participants