-
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
Reduce duplicate in liballoc reserve error handling #72734
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
☔ The latest upstream changes (presumably #73190) made this pull request unmergeable. Please resolve the merge conflicts. |
@pickfire It'd be great if you could rebase instead of merge following our "no merge-commits policy": https://rustc-dev-guide.rust-lang.org/contributing.html#pull-requests |
Opps, sorry about that, usually I don't merged, I don't know why I did. |
@withoutboats this is ready for review |
This comment has been minimized.
This comment has been minimized.
Let's re-assign from libs randomly... |
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.
Thanks for the PR @pickfire!
I’ve just left two tiny comments.
@KodrAus I have updated the patch. |
☔ The latest upstream changes (presumably #74850) made this pull request unmergeable. Please resolve the merge conflicts. |
@pickfire Ping from triage, CI is still red here. Would you mind fixing this when you've got time? |
@crlf0710 I don't understand why it failed, can you please help to check? |
library/alloc/src/raw_vec.rs
Outdated
Err(AllocError { layout, .. }) => handle_alloc_error(layout), | ||
Ok(()) => { /* yay */ } | ||
} | ||
handle_reserve(self.try_reserve(len, additional)); |
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.
try_reserve_exact
@bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit c5975e9 with merge 7f41ba2ca0111135e5901abcd07df3e03c9027ca... |
☀️ Try build successful - checks-actions, checks-azure |
Queued 7f41ba2ca0111135e5901abcd07df3e03c9027ca with parent 5099914, future comparison URL. |
Finished benchmarking try commit (7f41ba2ca0111135e5901abcd07df3e03c9027ca): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
@tmiasko I thought the perf runs only considered compile-time but not run-time? |
@KodrAus this looks ready to review |
Since rustc is a bootstrapping compiler, changes to runtime also affect compile time. |
📌 Commit c5975e9 has been approved by |
Reduce duplicate in liballoc reserve error handling Not sure if it affects compilation time.
…atic-morse Rollup of 13 pull requests Successful merges: - rust-lang#72734 (Reduce duplicate in liballoc reserve error handling) - rust-lang#76131 (Don't use `zip` to compare iterators during pretty-print hack) - rust-lang#76150 (Don't recommend ManuallyDrop to customize drop order) - rust-lang#76275 (Implementation of Write for some immutable ref structs) - rust-lang#76489 (Add explanation for E0756) - rust-lang#76581 (do not ICE on bound variables, return `TooGeneric` instead) - rust-lang#76655 (Make some methods of `Pin` unstable const) - rust-lang#76783 (Only get ImplKind::Impl once) - rust-lang#76807 (Use const-checking to forbid use of unstable features in const-stable functions) - rust-lang#76888 (use if let instead of single match arm expressions) - rust-lang#76914 (extend `Ty` and `TyCtxt` lints to self types) - rust-lang#77022 (Reduce boilerplate for BytePos and CharPos) - rust-lang#77032 (lint missing docs for extern items) Failed merges: r? `@ghost`
☔ The latest upstream changes (presumably #77039) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:
|
Not sure if it affects compilation time.