Skip to content

Conversation

davidtwco
Copy link
Member

Fixes #59508.

r? @estebank
cc @varkor

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 30, 2019
@rust-highfive

This comment has been minimized.

Copy link
Contributor

@varkor varkor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! r=me with typos fixed.

This commit extends the existing generic re-ordering diagnostic to
include any bounds on the generic parameter, thus producing correct
suggestions.
This commit updates the generic parameter re-ordering diagnostic to only
mention const generics if the feature is enabled.
@davidtwco
Copy link
Member Author

@bors r=varkor
r? @varkor

@bors
Copy link
Collaborator

bors commented Mar 31, 2019

📌 Commit 0270d56 has been approved by varkor

@rust-highfive rust-highfive assigned varkor and unassigned estebank Mar 31, 2019
@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 31, 2019
@bors
Copy link
Collaborator

bors commented Mar 31, 2019

⌛ Testing commit 0270d56 with merge 0dccd9284b4f68a54b6683dd90d687dc4cc1f750...

Centril added a commit to Centril/rust that referenced this pull request Mar 31, 2019
Include bounds in generic re-ordering diagnostic

Fixes rust-lang#59508.

r? @estebank
cc @varkor
@Centril
Copy link
Contributor

Centril commented Mar 31, 2019

Rolled up into #59579, @bors retry

Centril added a commit to Centril/rust that referenced this pull request Mar 31, 2019
Include bounds in generic re-ordering diagnostic

Fixes rust-lang#59508.

r? @estebank
cc @varkor
Centril added a commit to Centril/rust that referenced this pull request Mar 31, 2019
Include bounds in generic re-ordering diagnostic

Fixes rust-lang#59508.

r? @estebank
cc @varkor
bors added a commit that referenced this pull request Mar 31, 2019
Rollup of 4 pull requests

Successful merges:

 - #58828 (libstd: deny(elided_lifetimes_in_paths))
 - #59234 (Mention `no merge policy` in the CONTRIBUTING guide)
 - #59572 (Include bounds in generic re-ordering diagnostic)
 - #59574 (Distinguish message for external macros depending on error level)

Failed merges:

r? @ghost
@bors bors merged commit 0270d56 into rust-lang:master Mar 31, 2019
@davidtwco davidtwco deleted the issue-59508 branch April 7, 2019 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants