-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Update error message for E0243 and E0244 #35419
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @jonathandturner (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
@@ -18,6 +18,7 @@ fn main() | |||
vfnfer.push(box h); | |||
println!("{:?}",(vfnfer[0] as Fn)(3)); | |||
//~^ ERROR the precise format of `Fn`-family traits' | |||
//~| ERROR wrong number of type arguments: expected 1, found 0 | |||
//~| ERROR E0243 | |||
//~| NOTE expected 1 type arguments, found 0 |
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 errors:
unexpected errors (from JSON output): [
Error {
line_num: 19,
kind: Some(
Note
),
msg: "in this expansion of println!"
},
Error {
line_num: 19,
kind: Some(
Note
),
msg: "in this expansion of println!"
},
Error {
line_num: 19,
kind: Some(
Note
),
msg: "in this expansion of println!"
},
Error {
line_num: 19,
kind: Some(
Note
),
msg: "in this expansion of println!"
}
]
Remove the note make the test pass. Any idea?
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.
according to irc, it's because once one NOTE is there, they must all be accounted for, should I remove mine or add the 4 missing?
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.
Right. For the time being, would you mind adding the 4 missing ones? We'll probably do another pass later on that helps clean up macro errors, but for now we'll need to test for them.
Updated |
Looks good! @bors r+ rollup |
📌 Commit 24ddca0 has been approved by |
Update error message for E0243 and E0244 Fixes rust-lang#35389 and rust-lang#35390 as part of rust-lang#35233. r? @jonathandturner
@bors r- Looks like you missed a couple, both of them in
|
Had to rebase to see the errors, anyway fixed |
📌 Commit 02f3609 has been approved by |
Update error message for E0243 and E0244 Fixes rust-lang#35389 and rust-lang#35390 as part of rust-lang#35233. r? @jonathandturner
Update error message for E0243 and E0244 Fixes rust-lang#35389 and rust-lang#35390 as part of rust-lang#35233. r? @jonathandturner
Fixes #35389 and #35390 as part of #35233.
r? @jonathandturner