-
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
Specific labels when referring to "expected" and "found" types #66389
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@rust-lang/wg-diagnostics is this something we'd like to do? |
Looks like an improvement to me. |
a78761e
to
29e48d9
Compare
= note: expected type `unsafe extern "C" fn(isize, u8)` | ||
found type `unsafe extern "C" fn(isize, u8, ...) {foo}` | ||
= note: expected fn pointer `unsafe extern "C" fn(isize, u8)` | ||
found fn item `unsafe extern "C" fn(isize, u8, ...) {foo}` |
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 output is slightly worrying to me. It might actually confuse people more than it clarifies (unless we decide to add another note explaining that fn pointers and fn items can be interchangeable as long as the share the same signature).
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
af22e7e
to
72123e2
Compare
This comment has been minimized.
This comment has been minimized.
d12ec63
to
82e8e63
Compare
82e8e63
to
887bef3
Compare
This comment has been minimized.
This comment has been minimized.
887bef3
to
468722b
Compare
@bors retry |
⌛ Testing commit 468722b with merge 30de5622ec32aa04f9ca2edbd1499405d7dcd703... |
💔 Test failed - checks-azure |
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Another spurious error? |
Specific labels when referring to "expected" and "found" types
☀️ Test successful - checks-azure |
Tested on commit rust-lang/rust@53712f8. Direct link to PR: <rust-lang/rust#66389> 💔 rls on windows: test-pass → test-fail (cc @Xanewok, @rust-lang/infra). 💔 rls on linux: test-pass → test-fail (cc @Xanewok, @rust-lang/infra).
Rustup to rustc 1.41.0-nightly (35ef33a 2019-11-21) I don't have the right fix for the fmtstr tests, and I'm also hitting problems caused by messense/rustc-test#3 List of rustups: - rust-lang/rust#66271 (syntax: Keep string literals in ABIs and `asm!` more precisely) - rust-lang/rust#65355 (Stabilize `!` in Rust 1.41.0) - rust-lang/rust#66515 (Reduce size of `hir::Expr` by boxing more of `hir::InlineAsm`) - rust-lang/rust#66389 (Specific labels when referring to "expected" and "found" types) - rust-lang/rust#66074 ([mir-opt] Turn on the `ConstProp` pass by default) changelog: none
Rustup to rustc 1.41.0-nightly (35ef33a 2019-11-21) I don't have the right fix for the fmtstr tests, and I'm also hitting problems caused by messense/rustc-test#3 List of rustups: - rust-lang/rust#66271 (syntax: Keep string literals in ABIs and `asm!` more precisely) - rust-lang/rust#65355 (Stabilize `!` in Rust 1.41.0) - rust-lang/rust#66515 (Reduce size of `hir::Expr` by boxing more of `hir::InlineAsm`) - rust-lang/rust#66389 (Specific labels when referring to "expected" and "found" types) - rust-lang/rust#66074 ([mir-opt] Turn on the `ConstProp` pass by default) changelog: none
Rustup to rustc 1.41.0-nightly (35ef33a 2019-11-21) I don't have the right fix for the fmtstr tests, and I'm also hitting problems caused by messense/rustc-test#3 List of rustups: - rust-lang/rust#66271 (syntax: Keep string literals in ABIs and `asm!` more precisely) - rust-lang/rust#65355 (Stabilize `!` in Rust 1.41.0) - rust-lang/rust#66515 (Reduce size of `hir::Expr` by boxing more of `hir::InlineAsm`) - rust-lang/rust#66389 (Specific labels when referring to "expected" and "found" types) - rust-lang/rust#66074 ([mir-opt] Turn on the `ConstProp` pass by default) changelog: none
No description provided.