-
Notifications
You must be signed in to change notification settings - Fork 792
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
Emit a better error for abi3 inheritance #4185
Conversation
7e688b5
to
5d267c7
Compare
108a57e
to
cee1c7e
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.
Nice! I think there's loads of places where we can use this :)
ef4d978
to
5e96c6a
Compare
tests/test_compile_error.rs
Outdated
|
||
#[cfg(not(target_arch = "wasm32"))] // Not possible to invoke compiler from wasm | ||
#[test] | ||
fn test_diagnostics() { |
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.
Now that we're not gating the above, do we need this separate test?
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 thought it would be useful to separate into "we don't want this to compile" and "we want a decent error message for this". I'm happy to combine them if you want.
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.
Usually my hope for all these tests is to have a good error message, so I think it's simpler to combine. 😁
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.
Ok :)
f28b889
to
849d42b
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.
Looks great to me, thanks! 👍
I'm looking forward to seeing how this can help with things like FromPyObject
and maybe even PyClass<Frozen = False>
!
I think the |
I'm excited to finally use
diagnostic::on_unimplemented
:)