Uh oh!
There was an error while loading. Please reload this page.
Remove duplicated "parameter" in E0089 text - #39758
Conversation
rust-highfive
commented
Feb 12, 2017
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
This sentence is invalid actually... It needs to speak about type parameters and not just parameter.
There was a problem hiding this comment.
@GuillaumeGomez it does actually, it's just not repeating "type parameter" throughout the entire message:
error[E0089]: too few type parameters provided: expected 2 parameters parameters, found 1 parameter parameter
(emphasis mine)
There was a problem hiding this comment.
Yes, but repeating things is a good thing from my point of view. It allows to have coherent error messages.
82f8f3f to
3d0b83dCompareshepmaster
commented
Feb 13, 2017
@GuillaumeGomez I've added a second commit that adds the requested "type" or "lifetime" text. Since I was making a larger change, I went ahead and normalized the 4 related errors and their tests. |
GuillaumeGomez
commented
Feb 13, 2017
Awesome, thanks! Once the tidy issue is fixed: I'll r+ it. |
They now always say how many lifetime / type parameters were expected and are explicit about stating "lifetime" or "type" instead of just "parameter".
3d0b83d to
1c99841Compareshepmaster
commented
Feb 13, 2017
@GuillaumeGomez I always fail to check tidy. Fixed now. |
GuillaumeGomez
commented
Feb 13, 2017
Thanks! @bors: r+ rollup |
bors
commented
Feb 13, 2017
📌 Commit 1c99841 has been approved by |
…GuillaumeGomez Remove duplicated "parameter" in E0089 text Closesrust-lang#39732
Closes#39732