Skip to content

Rollup of 4 pull requests - #97356

Merged
bors merged 9 commits into
rust-lang:masterfrom
Dylan-DPC:rollup-bhceawj
May 24, 2022
Merged

Rollup of 4 pull requests#97356
bors merged 9 commits into
rust-lang:masterfrom
Dylan-DPC:rollup-bhceawj

Conversation

@Dylan-DPC

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

compiler-errorsand others added 9 commits May 22, 2022 14:22
(with an intermediate raw ptr, not a direct transmute)
…ylan-DPC
Lifetime variance fixes for rustdoc
rust-lang#97287 migrates rustc to a `Ty` type that is invariant over its lifetime `'tcx`, so I need to fix a bunch of places that assume that `Ty<'a>` and `Ty<'b>` can be unified by shortening both to some common lifetime.
This is doable, since everything is already `'tcx`, so all this PR does is be a bit more explicit that elided lifetimes are actually `'tcx`.
Split out from rust-lang#97287 so the rustdoc team can review independently.
…, r=davidtwco
Parse expression after `else` as a condition if followed by `{`
Fixesrust-lang#49361.
Two things:
1. This wording needs help. I can never find a natural/intuitive phrasing when I write diagnostics 😅
2. Do we even want to show the "wrap in braces" case? I would assume most of the time the "add an `if`" case is the right one.
…, r=Mark-Simulacrum
Stabilize `cell_filter_map`
FCP has been completed: rust-lang#81061 (comment)Closesrust-lang#81061
explain how to turn integers into fn ptrs
(with an intermediate raw ptr, not a direct transmute)
Direct int2ptr transmute, under the semantics I am imagining, will produce a ptr with "invalid" provenance that is invalid to deref or call. We cannot give it the same semantics as int2ptr casts since those do [something complicated](https://www.ralfj.de/blog/2022/04/11/provenance-exposed.html).
To my great surprise, that is already what the example in the `transmute` docs does. :) I still added a comment to say that that part is important, and I added a section explicitly talking about this to the `fn()` type docs.
With rust-lang/miri#2151, Miri will start complaining about direct int-to-fnptr transmutes (in the sense that it is UB to call the resulting pointer).
@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 May 24, 2022
@Dylan-DPC

Copy link
Copy Markdown
MemberAuthor

@bors r+ rollup=never p=5

@bors

bors commented May 24, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 4bd4018 has been approved by Dylan-DPC

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

bors commented May 24, 2022

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 4bd4018 with merge fa70b89...

@bors

bors commented May 24, 2022

Copy link
Copy Markdown
Collaborator

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

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label May 24, 2022
@bors
bors merged commit fa70b89 into rust-lang:masterMay 24, 2022
@rustbotrustbot added this to the 1.63.0 milestone May 24, 2022
@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (fa70b89): comparison url.

Instruction count

  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: 🎉 relevant improvements found
Regressions 😿
(primary)
Regressions 😿
(secondary)
Improvements 🎉
(primary)
Improvements 🎉
(secondary)
All 😿 🎉
(primary)
count100030
mean2N/AN/AN/A-1.1%N/A
maxN/AN/AN/A-1.1%N/A

Max RSS (memory usage)

Results
  • Primary benchmarks: 🎉 relevant improvement found
  • Secondary benchmarks: mixed results
Regressions 😿
(primary)
Regressions 😿
(secondary)
Improvements 🎉
(primary)
Improvements 🎉
(secondary)
All 😿 🎉
(primary)
count102131
mean2N/A1.4%-3.4%-1.6%-3.4%
maxN/A1.6%-3.4%-2.5%-3.4%

Cycles

Results
  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: mixed results
Regressions 😿
(primary)
Regressions 😿
(secondary)
Improvements 🎉
(primary)
Improvements 🎉
(secondary)
All 😿 🎉
(primary)
count106020
mean2N/A7.7%N/A-2.4%N/A
maxN/A9.3%N/A-2.7%N/A

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

@rustbot label: -perf-regression

Footnotes

  1. number of relevant changes23

  2. the arithmetic mean of the percent change23

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.

7 participants

@Dylan-DPC@bors@rust-timer@rustbot@compiler-errors@JohnTitor@RalfJung