-
Notifications
You must be signed in to change notification settings - Fork 547
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
Conversation
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.
There was a problem hiding this 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
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This was also intended to be a reference chapter, according to @scalexm.
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:

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.