-
Notifications
You must be signed in to change notification settings - Fork 13k
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 error_occured field to ConstQualifs, #78809
Conversation
@@ -0,0 +1,3 @@ | |||
struct Bug([u8; panic!(1)]); //~ ERROR panicking in constants is unstable |
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.
Not sure what a good test case is, in this case. So I added the one from the issue.
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.
This is a good test case. This PR does not yet fix struct Bug([u8; {let x; x}]);
, so there are no other tests to add
8d409f3
to
0c56372
Compare
@bors r+ |
📌 Commit 0c56372 has been approved by |
You need to rebase and re-bless, looks like we got another test added in the mean time |
Looks like the the new test still haven't been merged? |
Ah... this is a test from another PR? @bors r+ rollup=iffy |
📌 Commit 0c56372 has been approved by |
Is it not?
I could not find that file in the repo. |
Oh, my bad. I was looking in the wrong place. It was inside the clippy tests. I didn't look inside there. |
@bors r- |
0c56372
to
f026d0f
Compare
@oli-obk I've fixed the test. |
@bors r+ |
📌 Commit f026d0f has been approved by |
⌛ Testing commit f026d0f with merge a439b5b1ca6ec3543584169639e0ccdc7f278b8b... |
💔 Test failed - checks-actions |
☀️ Test successful - checks-actions |
add error_occured field to ConstQualifs, fix rust-lang#76064 I wasn't sure what `in_return_place` actually did and not sure why it returns `ConstQualifs` while it's sibling functions return `bool`. So I tried to make as minimal changes to the structure as possible. Please point out whether I have to refactor it or not. r? `@oli-obk` cc `@RalfJung`
fix #76064
I wasn't sure what
in_return_place
actually did and not sure why it returnsConstQualifs
while it's sibling functions returnbool
. So I tried to make as minimal changes to the structure as possible. Please point out whether I have to refactor it or not.r? @oli-obk
cc @RalfJung