-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rustdoc: formatting to buffers #64044
Merged
Merged
Commits on Sep 7, 2019
-
Configuration menu - View commit details
-
Copy full SHA for f35eae9 - Browse repository at this point
Copy the full SHA f35eae9View commit details -
Configuration menu - View commit details
-
Copy full SHA for eebd026 - Browse repository at this point
Copy the full SHA eebd026View commit details -
Create buffers in top-level rendering
This avoids needlessly creating and threading the buffers through when we only use them once.
Configuration menu - View commit details
-
Copy full SHA for 9e52ba9 - Browse repository at this point
Copy the full SHA 9e52ba9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3657bfc - Browse repository at this point
Copy the full SHA 3657bfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 57243b7 - Browse repository at this point
Copy the full SHA 57243b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75528f2 - Browse repository at this point
Copy the full SHA 75528f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04dc72e - Browse repository at this point
Copy the full SHA 04dc72eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f8bccb1 - Browse repository at this point
Copy the full SHA f8bccb1View commit details -
Implement Print for FnOnce(&mut Buffer)
This means that callers can pass in a closure like `|buf| some_function(..., &mut buf)` and pass in arbitrary arguments to that function without complicating the trait definition. We also keep the impl for str and String, since it's useful to be able to just pass in "" or format!("{}"...) results in some cases. This changes Print's definition to take self, instead of &self, because otherwise FnOnce cannot be called directly. We could instead take FnMut or even Fn, but that seems like it'd merely complicate matters -- most of the time, the FnOnce does not constrain us at all anyway. If it does, a custom Print impl for &'_ SomeStruct is not all that painful.
Configuration menu - View commit details
-
Copy full SHA for f4a15ae - Browse repository at this point
Copy the full SHA f4a15aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for eefaee1 - Browse repository at this point
Copy the full SHA eefaee1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5f1470 - Browse repository at this point
Copy the full SHA d5f1470View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f0e77f - Browse repository at this point
Copy the full SHA 3f0e77fView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb40d5f - Browse repository at this point
Copy the full SHA bb40d5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17bef30 - Browse repository at this point
Copy the full SHA 17bef30View commit details -
Configuration menu - View commit details
-
Copy full SHA for a502e85 - Browse repository at this point
Copy the full SHA a502e85View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1c1e86 - Browse repository at this point
Copy the full SHA c1c1e86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02c5c5c - Browse repository at this point
Copy the full SHA 02c5c5cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.