Skip to content
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

Print constants in type_name for const generics #68111

Merged
merged 1 commit into from
Jan 25, 2020

Conversation

varkor
Copy link
Member

@varkor varkor commented Jan 11, 2020

Fixes #65372.

r? @oli-obk as there may have been a deliberate decision not to in 5b98489#diff-4ed1a72c0bfdf17be769ed520932cd02R80.

@varkor varkor added the F-const_generics `#![feature(const_generics)]` label Jan 11, 2020
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 11, 2020
@oli-obk
Copy link
Contributor

oli-obk commented Jan 11, 2020

I'd rather not merge anything around constants and pretty printing until my pretty printing PR is merged.

This PR doesn't actually print anything new, right? It just stops printing the type for const generics

@varkor
Copy link
Member Author

varkor commented Jan 11, 2020

This PR doesn't actually print anything new, right?

It prints const generic arguments, which were previously just ignored.

@bors
Copy link
Contributor

bors commented Jan 11, 2020

☔ The latest upstream changes (presumably #67000) made this pull request unmergeable. Please resolve the merge conflicts.

@JohnCSimon JohnCSimon added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 18, 2020
@varkor varkor added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 23, 2020
@oli-obk
Copy link
Contributor

oli-obk commented Jan 24, 2020

#67133 is getting split up anyway, so r=me on this PR after a rebase

@varkor varkor force-pushed the const-generics-type_name branch from c6198a0 to 50dd8ea Compare January 24, 2020 16:23
@varkor
Copy link
Member Author

varkor commented Jan 24, 2020

@bors r=oli-obk rollup

@bors
Copy link
Contributor

bors commented Jan 24, 2020

📌 Commit 50dd8ea has been approved by oli-obk

@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 Jan 24, 2020
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jan 24, 2020
…oli-obk

Print constants in `type_name` for const generics

Fixes rust-lang#65372.

r? @oli-obk as there may have been a deliberate decision not to in rust-lang@5b98489#diff-4ed1a72c0bfdf17be769ed520932cd02R80.
bors added a commit that referenced this pull request Jan 24, 2020
Rollup of 6 pull requests

Successful merges:

 - #68111 (Print constants in `type_name` for const generics)
 - #68374 (Fix invalid link to the C++ Exception Handling ABI documentation)
 - #68504 (Use check-pass mode for lint tests and nll tests)
 - #68509 (Clean up error codes E0223 and E0225 explanations)
 - #68511 (Remove unused ignore-license directives)
 - #68515 (Support feature process_set_argv0 for VxWorks)

Failed merges:

r? @ghost
@bors bors merged commit 50dd8ea into rust-lang:master Jan 25, 2020
@varkor varkor deleted the const-generics-type_name branch January 25, 2020 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-const_generics `#![feature(const_generics)]` 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.

type_name doesn't get correct type_name with const generics.
5 participants