-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Moved use of box_syntax in TRPL book. #23822
Moved use of box_syntax in TRPL book. #23822
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see CONTRIBUTING.md for more information. |
This might be deliberate? |
Yes, this matters. It's possible that this should be removed and a section should be added in the unstable section though. But just this diff doesn't work. |
That makes sense. I'll update this PR with a new section about box syntax. |
a81100f
to
97fd8ac
Compare
I added a new section about |
☔ The latest upstream changes (presumably #23936) made this pull request unmergeable. Please resolve the merge conflicts. |
6b12a8a
to
44fdbda
Compare
I rebased on top of master. |
@steveklabnik This PR should now be ready for review. |
So the content here is good, but the section that uses the gate, about return values, should end up being in the new chapter as well, as it relies on the keyword. |
Create a new section under the Unstable section for `box` syntax and patterns and removed their discussion from the Pointers section.
44fdbda
to
00d929d
Compare
@steveklabnik Done. |
@bors: r+ rollup |
📌 Commit 00d929d has been approved by |
Thank you! :D |
…steveklabnik This is the first use of `box`. It's an unstable feature and also isn't consistent with the use of `Box` in the "original" code above it. r? @steveklabnik
This is the first use of
box
. It's an unstable feature and also isn'tconsistent with the use of
Box
in the "original" code above it.r? @steveklabnik