Skip to content

Traits chapter cleanup #219

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

Merged
merged 8 commits into from
Oct 26, 2018
Merged

Traits chapter cleanup #219

merged 8 commits into from
Oct 26, 2018

Conversation

tmandry
Copy link
Member

@tmandry tmandry commented Oct 25, 2018

This does a small reorganization of the traits (new-style) chapter. IMO it makes sense to group the logic things together. Before, canonicalized queries were kind of in the middle of all the "logic" topics.

Here's what the chapter sidebar looks like now:
screen shot 2018-10-26 at 11 06 03 am

I also did some fly-by additions, and edits to break up the text. The edits make the text easier to scan/read by my eye, but this is extremely subjective, so let me know if anyone has objections.

This work is part of rust-lang/rust#55100.

@tmandry tmandry changed the title Reorg traits Traits chapter cleanup Oct 25, 2018
@mark-i-m
Copy link
Member

Thanks @tmandry! I will take a look soon.

Also, a heads up: this might end up having merge conflicts with #217

I found the layout to be a bit inconsistent before. This groups anything
that touches logic rules under "Lowering to logic".

This might be crowding too many things under that section, but it makes
more sense to me overall.
Copy link
Member

@mark-i-m mark-i-m left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks :)

I left one minor nit, but other than that r=me

@nikomatsakis nikomatsakis self-requested a review October 26, 2018 17:33
src/SUMMARY.md Outdated
@@ -38,12 +38,12 @@
- [Goals and clauses](./traits/goals-and-clauses.md)
- [Equality and associated types](./traits/associated-types.md)
- [Implied bounds](./traits/implied-bounds.md)
- [Well-formedness checking](./traits/wf.md)
Copy link
Member

Choose a reason for hiding this comment

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

Could you put this chapter just after "lowering rules"? It's intended to be a "complete reference" chapter and I think it's better for this one to read it after being comfortable with the full set of lowering rules.

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

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

LGTM!

@nikomatsakis nikomatsakis merged commit 62e7f15 into rust-lang:master Oct 26, 2018
@tmandry tmandry deleted the reorg-traits branch November 1, 2018 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants