Skip to content

Rollup of 5 pull requests - #101757

Merged
bors merged 17 commits into
rust-lang:masterfrom
Dylan-DPC:rollup-wkt6oe9
Sep 13, 2022
Merged

Rollup of 5 pull requests#101757
bors merged 17 commits into
rust-lang:masterfrom
Dylan-DPC:rollup-wkt6oe9

Conversation

@Dylan-DPC

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

nnethercoteand others added 17 commits September 9, 2022 12:00
And into `AttrAnnotatedTokenTree::Token`.
PR rust-lang#99887 did the same thing for `TokenStream`.
These two type names are long and have long matching prefixes. I find
them hard to read, especially in combinations like
`AttrAnnotatedTokenStream::new(vec![AttrAnnotatedTokenTree::Token(..)])`.
This commit renames them as `AttrToken{Stream,Tree}`.
The `AttrTokenStream` is always immediately turned into a `TokenStream`.
`To` is better than `Create` for indicating that this is a non-consuming
conversion, rather than creating something out of nothing.
And the addition of `Attr` is because the current names makes them sound
like they relate to `TokenStream`, but really they relate to
`AttrTokenStream`.
This fixes the typo `&[u8, _]` -> `&[u8; _]`
These two elements are always nested below `<nav class="sidebar">`, and will
inherit the font from their parent.
These selectors were added in 93520d2, and
became redundant in 07e3f99 when the source
sidebar elements became nested below `nav.sidebar`.
…rochenkov
Streamline `AttrAnnotatedTokenStream`
r? ```@petrochenkov```
…-obk
Avoid `Iterator::last`
Adapters like `Filter` and `Map` use the default implementation of `Iterator::last` which is not short-circuiting (and so does `core::str::Split`). The predicate function will be run for every single item of the underlying iterator. I hope that removing those calls to `last` results in slight performance improvements.
…avidtwco
A `SubstitutionPart` is not considered a deletion if it replaces nothing with nothing
Fixesrust-lang#101689
Fix typo in concat_bytes documentation
This fixes the typo `&[u8, _]` -> `&[u8; _]`
…-sidebar-toggle, r=GuillaumeGomez
rustdoc: remove redundant CSS `#source-sidebar, #sidebar-toggle`
These two elements are always nested below `<nav class="sidebar">`, and will inherit the font from their parent.
These selectors were added in 93520d2, and became redundant in 07e3f99 when the source sidebar elements became nested below `nav.sidebar`.
@rustbotrustbot added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. rollup A PR which is a rollup labels Sep 13, 2022
@Dylan-DPC

Copy link
Copy Markdown
MemberAuthor

@bors r+ rollup=never p=5

@bors

bors commented Sep 13, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 1c74d50 has been approved by Dylan-DPC

It is now in the queue for this repository.

@borsbors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Sep 13, 2022
@bors

bors commented Sep 13, 2022

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 1c74d50 with merge 5338f5f...

@bors

bors commented Sep 13, 2022

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: Dylan-DPC
Pushing 5338f5f to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Sep 13, 2022
@bors
bors merged commit 5338f5f into rust-lang:masterSep 13, 2022
@rustbotrustbot added this to the 1.65.0 milestone Sep 13, 2022
@rust-timer

Copy link
Copy Markdown
Collaborator

📌 Perf builds for each rolled up PR:

PR#Perf Build Sha
#1017483cbc0773aa8b10687f322a8a418ad584d35fb613
#101745c766d9a5e7ccbbbb3519dde64fc3a8144e447d87
#101700919f462ddb3b7a1680bcb2c92293590879851e84
#101690acbd4c548c8ce8a5c0f86f960d795cab4291070b
#101602a1df0a91ef41be3df92b4b592ce1cbbe63bd5ff8

previous master: 7098c181f8

In the case of a perf regression, run the following command for each PR you suspect might be the cause: @rust-timer build $SHA

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (5338f5f): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results

This 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.

mean1rangecount2
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
2.6%[2.6%, 2.6%]1
Improvements ✅
(primary)
-4.0%[-5.8%, -2.1%]2
Improvements ✅
(secondary)
-1.9%[-2.9%, -1.1%]3
All ❌✅ (primary)-4.0%[-5.8%, -2.1%]2

Cycles

Results

This 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.

mean1rangecount2
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
-2.2%[-2.2%, -2.2%]1
Improvements ✅
(secondary)
--0
All ❌✅ (primary)-2.2%[-2.2%, -2.2%]1

Footnotes

  1. the arithmetic mean of the percent change2

  2. number of relevant changes2

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-borsThis PR was explicitly merged by bors.rollupA PR which is a rollupS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@Dylan-DPC@bors@rust-timer@rustbot@nnethercote@kadiwa4@compiler-errors@jay3332@notriddle