-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Rollup of 6 pull requests #104629
Rollup of 6 pull requests #104629
Conversation
Today it always copies it for *every* appended element, but one of those clones is avoidable.
The retry has been implemented already.
Rarranging the substration and equality check into an addition and an equality check is sufficient. Algebra is cool, isn't it? Co-authored-by: Michael Goulet <michael@errs.io>
This relies on the CI testing a rustc that's compiled with overflow-checks = true
…-issue, r=the8472 Add tracking issue for `const_arguments_as_str` Tracking issue: rust-lang#103900 The original PR didn't create a tracking issue.
…scription, r=JohnTitor rustdoc: Add copy to the description of repeat Small nit, but it's more clear to say `copy` here instead of defining `repeat` in terms of itself.
`VecDeque::resize` should re-use the buffer in the passed-in element Today it always copies it for *every* appended element, but one of those clones is avoidable. This adds `iter::repeat_n` (rust-lang#104434) as the primitive needed to do this. If this PR is acceptable, I'll also use this in `Vec` rather than its custom `ExtendElement` type & infrastructure that is harder to share between multiple different containers: https://github.com/rust-lang/rust/blob/101e1822c3e54e63996c8aaa014d55716f3937eb/library/alloc/src/vec/mod.rs#L2479-L2492
…ct-with-overflow, r=compiler-errors Fix substraction with overflow in `wrong_number_of_generic_args.rs` Fixes rust-lang#104287 This issue happens in the `suggest_moving_args_from_assoc_fn_to_trait_for_qualified_path` function, which seems to run before the error checking facilities can catch an invalid use of generic arguments. Thus we get a subtraction with overflow because the code implicitly assumes that the source program makes sense (or is this assumption not true even if the program is correct?).
Cleanup macro matching recovery The retry has been implemented already in rust-lang#104335. Also removes a `HACK` comment that's not really needed anymore because the "don't recover during macro matching" isn't really a hack but correct behavior.
Fix doctest errors related to rustc_middle Helps with rust-lang#99144
@bors r+ p=6 rollup=never |
☀️ Test successful - checks-actions |
📌 Perf builds for each rolled up PR: previous master: 7477c1f4f7 In the case of a perf regression, run the following command for each PR you suspect might be the cause: |
Finished benchmarking commit (2ed65da): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
Successful merges:
const_arguments_as_str
#103901 (Add tracking issue forconst_arguments_as_str
)VecDeque::resize
should re-use the buffer in the passed-in element #104435 (VecDeque::resize
should re-use the buffer in the passed-in element)wrong_number_of_generic_args.rs
#104467 (Fix substraction with overflow inwrong_number_of_generic_args.rs
)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup