-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Add const-eval support for indirects #61437
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cc @oli-obk Shouldn't this have some tests? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
Some tests would be great indeed. iirc @wesleywiser mentioned that promoteds will cause Indirect
s to occur. Not sure how to write a test around that, maybe something with casts of promoted values?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Unfortunately I don't understand what the current code is doing. By reading the code I would have assumed this to not work, but it does, so my understanding must be wrong. What I thought is happening:
I assumed Looking at |
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.
I think we should probably just squash all of these commits together. You can do that by running
git rebase -i origin/master
(assuming origin
is the name of the https://github.com/rust-lang/rust
repo).
Then in your editor pick
the first commit and squash
all the others.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Ok the tests passed, I rebased and I'll wait until tomorrow for CI |
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.
Looks good to me but I'd like @oli-obk to sign off as well.
@bors r=wesleywiser,oli-obk |
📌 Commit b253678 has been approved by |
…wiser,oli-obk Add const-eval support for indirects r? @wesleywiser
☀️ Test successful - checks-travis, status-appveyor |
Tested on commit rust-lang/rust@acda261. Direct link to PR: <rust-lang/rust#61437> 🎉 rls on windows: test-fail → test-pass (cc @Xanewok, @rust-lang/infra).
r? @wesleywiser