-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
improve error message for calling a method on a raw pointer with an unknown pointee #111954
Conversation
@@ -18,7 +18,7 @@ hir_typeck_struct_expr_non_exhaustive = | |||
cannot create non-exhaustive {$what} using struct expression | |||
|
|||
hir_typeck_method_call_on_unknown_type = |
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 wonder if we should also rename this slug.. method_call_on_unknown_raw_pointee
?
r=me with nit or not, if you do fix it then please squash into one commit instead of adding it on top @bors delegate+ |
d270737
to
fbf2a7d
Compare
@bors r=compiler-errors |
📌 Commit fbf2a7d9e2958a1fe786a9b3241d6c5e5a08bf0e has been approved by It is now in the queue for this repository. |
@bors r- testing a thing |
@bors r+ |
📌 Commit fbf2a7d9e2958a1fe786a9b3241d6c5e5a08bf0e has been approved by It is now in the queue for this repository. |
lol you mean @bors r=compiler-errors |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit fbf2a7d9e2958a1fe786a9b3241d6c5e5a08bf0e has been approved by It is now in the queue for this repository. |
oh yeah rollup too @bors rollup |
☔ The latest upstream changes (presumably #111858) made this pull request unmergeable. Please resolve the merge conflicts. |
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#111384 (Fix linking Mac Catalyst by including LC_BUILD_VERSION in object files) - rust-lang#111899 (CGU cleanups) - rust-lang#111940 (Clarify safety concern of `io::Read::read` is only relevant in unsafe code) - rust-lang#111947 (Add test for RPIT defined with different hidden types with different substs) - rust-lang#111951 (Correct comment on privately uninhabited pattern.) Failed merges: - rust-lang#111954 (improve error message for calling a method on a raw pointer with an unknown pointee) r? `@ghost` `@rustbot` modify labels: rollup
…nknown pointee, and add some tests
fbf2a7d
to
b19466a
Compare
@bors r=compiler-errors |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#111714 (Stop confusing specification levels when computing expectations.) - rust-lang#111927 (Migrate `item_static` to Askama) - rust-lang#111954 (improve error message for calling a method on a raw pointer with an unknown pointee) - rust-lang#111973 (Update current implementation comments for `select_nth_unstable`) - rust-lang#111976 (Generate docs for bootstrap itself) - rust-lang#111977 (Make errors from `x doc` less verbose) - rust-lang#111987 (do not prefer substs relate during coherence) - rust-lang#111991 (Change ty and const error's pretty printing to be in braces) r? `@ghost` `@rustbot` modify labels: rollup
The old error message had very confusing wording.
Also added some more test cases besides the single edition test.
r? @compiler-errors