Skip to content

Rollup of 14 pull requests - #100346

Merged
bors merged 37 commits into
rust-lang:masterfrom
matthiaskrgr:rollup-6rljn4p
Aug 10, 2022
Merged

Rollup of 14 pull requests#100346
bors merged 37 commits into
rust-lang:masterfrom
matthiaskrgr:rollup-6rljn4p

Conversation

@matthiaskrgr

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

notriddleand others added 30 commits July 5, 2022 11:12
This commit ports the scroll locking behavior from the source sidebar to the
regular sidebar, and also fixes some bad behavior where opening a "mobile"
sidebar, and growing the viewport so that the "desktop" mode without scroll
locking is activated, could potentially leave the page stuck.
This does not affect the behavior on larger screens. Only small ones, where
the sidebar covers up the main content.
I haven't understood the difference between these before, but
`@compiler-errors` helped me clear it up. Hopefully this will help other
people who've been confused!
…scroll-lock, r=jsha
rustdoc: improve scroll locking in the rustdoc mobile sidebars
This PR prevents the main content area from scrolling while the mobile sidebar is open on documentation pages (porting the scroll locking behavior from the source sidebar to the regular sidebar), and also fixes some bad behavior where opening a "mobile" sidebar, and growing the viewport so that the "desktop" mode without scroll locking is activated, could potentially leave the page stuck.
This does not affect the behavior on larger screens. Only small ones, where the sidebar covers up the main content.
Split out from rust-lang#98772
…=camelid
rustdoc-json: Remove doc FIXME for Import::id and explain
Also add some test and refactor related code a bit.
``@rustbot`` labels +A-rustdoc-json +T-rustdoc
Error on broken pipe but do not backtrace or ICE
Windows will report a broken pipe as a normal error which in turn `println!` will panic on. Currently this causes rustc to produce a backtrace and ICE. However, this is not a bug with rustc so a backtrace is overly verbose and ultimately unhelpful to the user.
Kind of fixesrust-lang#98700. Although this is admittedly a bit of a hack because at panic time all we have is a string to inspect. On zulip it was suggested that libstd might someday provide a way to indicate a soft panic but that day isn't today.
linker-plugin-lto.md: Correct the name of example c file
The final output is linked with `cmain.o`, but we use `main.o` in the example.
This patch changes the name to `cmain.c` and `cmain.o` as the "C/C++ code as a dependency in Rust" section.
…ixups, r=davidtwco
Some "this expression has a field"-related fixes
Each commit does something different and is worth reviewing, but the final diff from `master..HEAD` contains the sum of the changes to the UI tests, since some commits added UI tests "regressions" which were later removed in other commits.
The only change I could see adding on top of this is suppressing `Clone::clone` from the "this expression has a field that has this method" suggestion, since it's so commonly implemented by types that it's not worthwhile suggesting in general.
Do not manually craft a span pointing inside a multibyte character.
Fixesrust-lang#92462
…=davidtwco
Fail gracefully when const pattern is not structural match.
Fixesrust-lang#82909
…r-errors
Add some high-level docs to `FnCtxt` and `ItemCtxt`
I haven't understood the difference between these before, but
``@compiler-errors`` helped me clear it up. Hopefully this will help other
people who've been confused!
r? `@compiler-errors`
Set tainted errors bit before emitting coerce suggestions.
Fixesrust-lang#100246.
rust-lang#89576 basically got 99% of the way there but the match typechecking code (which calls `coerce_inner`) also needed a similar fix.
also update anyhow in codegen_cranelift
now that is has been un-yanked
r? ``@bjorn3``
…=notriddle
Remove more Clean trait implementations
Follow-up of rust-lang#99638.
r? `@notriddle`
Mention `unit-test` in MIR opt test README
r? `@RalfJung`
…=Dylan-DPC
Remove more Clean trait implementations
Follow-up of rust-lang#99638.
r? ``@Dylan-DPC``
…ivate, r=notriddle
[rustdoc] Don't render impl blocks with doc comment if they only contain private items by default
Fixesrust-lang#100001.
cc `@jhpratt`
r? `@notriddle`
@rustbotrustbot added T-compiler Relevant to the compiler 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 Aug 9, 2022
@matthiaskrgr

Copy link
Copy Markdown
MemberAuthor

@bors r+ rollup=never p=9

@bors

bors commented Aug 9, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 752b9a8 has been approved by matthiaskrgr

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 Aug 9, 2022
@bors

bors commented Aug 10, 2022

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 752b9a8 with merge 0459d2f...

@bors

bors commented Aug 10, 2022

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: matthiaskrgr
Pushing 0459d2f to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Aug 10, 2022
@bors
bors merged commit 0459d2f into rust-lang:masterAug 10, 2022
@rustbotrustbot added this to the 1.65.0 milestone Aug 10, 2022
@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (0459d2f): comparison url.

Instruction count

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

Max RSS (memory usage)

Results
  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: ❌ relevant regressions found
mean1maxcount2
Regressions ❌
(primary)
N/AN/A0
Regressions ❌
(secondary)
2.6%6.1%41
Improvements ✅
(primary)
N/AN/A0
Improvements ✅
(secondary)
-2.6%-2.6%1
All ❌✅ (primary)N/AN/A0

Cycles

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

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

Footnotes

  1. the arithmetic mean of the percent change

  2. number of relevant changes

@matthiaskrgr
matthiaskrgr deleted the rollup-6rljn4p branch October 9, 2022 00:31
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-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.

15 participants

@matthiaskrgr@bors@rust-timer@rustbot@notriddle@Enselic@ChrisDenton@oToToT@compiler-errors@cjgillot@camelid@RalfJung@GuillaumeGomez@luqmana@JakobDegen