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

AdtDef is an algebraic data type, not abstract data type #64357

Merged
merged 1 commit into from
Sep 17, 2019
Merged

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Sep 10, 2019

r? @varkor

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 10, 2019
src/librustc/ty/mod.rs Outdated Show resolved Hide resolved
@varkor
Copy link
Member

varkor commented Sep 10, 2019

I think both "abstract data type" and "algebraic data type" are incorrect. "Abstract" because it's actually concrete and "algebraic" because it includes unions and is also not as general as the usual sense of "algebraic data type". I think @eddyb wasn't happy with the existing name as well; maybe UserDataType is a better choice.

src/librustc/ty/mod.rs Outdated Show resolved Hide resolved
@Centril
Copy link
Contributor Author

Centril commented Sep 16, 2019

@varkor Adjusted to "user-defined..." but also included a note at the bottom re. algebraic data types and how it is slightly wrong.

@varkor
Copy link
Member

varkor commented Sep 16, 2019

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Sep 16, 2019

📌 Commit 2fd4e58 has been approved by varkor

@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 Sep 16, 2019
Centril added a commit to Centril/rust that referenced this pull request Sep 16, 2019
`AdtDef` is an algebraic data type, not abstract data type

r? @varkor
Centril added a commit to Centril/rust that referenced this pull request Sep 16, 2019
`AdtDef` is an algebraic data type, not abstract data type

r? @varkor
Centril added a commit to Centril/rust that referenced this pull request Sep 16, 2019
`AdtDef` is an algebraic data type, not abstract data type

r? @varkor
bors added a commit that referenced this pull request Sep 16, 2019
Rollup of 4 pull requests

Successful merges:

 - #64357 (`AdtDef` is an algebraic data type, not abstract data type)
 - #64485 (update Miri)
 - #64509 (Make some adjustments to the documentation for `std::convert::identity`)
 - #64518 (Use while let slice_pattern instead of carrying an index around)

Failed merges:

r? @ghost
@bors bors merged commit 2fd4e58 into master Sep 17, 2019
@Centril Centril deleted the adt-docs-fix branch September 17, 2019 01:10
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.

5 participants