Skip to content

Rollup of 4 pull requests - #97315

Merged
bors merged 9 commits into
rust-lang:masterfrom
Dylan-DPC:rollup-2wee2oz
May 23, 2022
Merged

Rollup of 4 pull requests#97315
bors merged 9 commits into
rust-lang:masterfrom
Dylan-DPC:rollup-2wee2oz

Conversation

@Dylan-DPC

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

matthewwand others added 9 commits April 16, 2022 21:58
State that the four primitive operations honour IEEE 754 roundTiesToEven.
Documenting under "Primitive Type f32"; f64 refers to that.
…Dylan-DPC
Document rounding for floating-point primitive operations and string parsing
The docs for floating point don't have much to say at present about either the precision of their results or rounding behaviour.
As I understand it[^1][^2], Rust doesn't support operating with non-default rounding directions, so we need only describe roundTiesToEven.
[^1]: rust-lang#41753 (comment)
[^2]: llvm/llvm-project#8472 (comment)
This PR makes a start by documenting that for primitive operations and `from_str()`.
…otriddle
Add new eslint rule to prevent whitespace before function call paren
It prevents `foo ()` basically. :)
r? `@notriddle`
…idtwco
Lifetime variance fixes for rustc
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 many lifetimes are 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 compiler team can review independently.
…rrors
Add some regression tests for rust-lang#90400
This adds two regression tests taken from rust-lang#90400 (comment).
Note that we cannot close the issue right now as the [original code](rust-lang#90400 (comment)) still triggers an ICE.
r? `@compiler-errors`
@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 23, 2022
@Dylan-DPC

Copy link
Copy Markdown
MemberAuthor

@bors r+ rollup=never p=5

@bors

bors commented May 23, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit cf7e396 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 23, 2022
@bors

bors commented May 23, 2022

Copy link
Copy Markdown
Collaborator

⌛ Testing commit cf7e396 with merge 7f997f5...

@bors

bors commented May 23, 2022

Copy link
Copy Markdown
Collaborator

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

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

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (7f997f5): comparison url.

Instruction count

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

Max RSS (memory usage)

Results
  • Primary benchmarks: 😿 relevant regression found
  • Secondary benchmarks: 🎉 relevant improvements found
Regressions 😿
(primary)
Regressions 😿
(secondary)
Improvements 🎉
(primary)
Improvements 🎉
(secondary)
All 😿 🎉
(primary)
count110021
mean23.0%N/AN/A-1.6%3.0%
max3.0%N/AN/A-2.2%3.0%

Cycles

Results
  • Primary benchmarks: 😿 relevant regression found
  • Secondary benchmarks: 🎉 relevant improvements found
Regressions 😿
(primary)
Regressions 😿
(secondary)
Improvements 🎉
(primary)
Improvements 🎉
(secondary)
All 😿 🎉
(primary)
count110051
mean21.4%N/AN/A-2.1%1.4%
max1.4%N/AN/A-2.6%1.4%

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 changes2

  2. the arithmetic mean of the percent change2

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.

8 participants

@Dylan-DPC@bors@rust-timer@rustbot@mattheww@GuillaumeGomez@compiler-errors@JohnTitor