Skip to content

Rollup of 9 pull requests - #110458

Merged
bors merged 23 commits into
rust-lang:masterfrom
matthiaskrgr:rollup-1xcxmgc
Apr 17, 2023
Merged

Rollup of 9 pull requests#110458
bors merged 23 commits into
rust-lang:masterfrom
matthiaskrgr:rollup-1xcxmgc

Conversation

@matthiaskrgr

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

AndyJadoand others added 23 commits April 13, 2023 09:43
This setting is false by default according to rustc code here:
https://github.com/rust-lang/rust/blob/master/compiler/rustc_session/src/options.rs#L1236
I tested on a project and confirmed that setting this to false has no
effect, the linker flag still appears. Setting it to true removes the
linker flag.
I suspect this macro was around before `TypeFoldable`/`TypeVisitable`
were derivable. But now it's only used for two types, `Result` and
`Option`. Removing the macro and implementing the traits for those types
by hand makes the code much simpler.
They both allow for a lifetime other than `'tcx`, but this isn't needed.
Nothing particularly exciting here, but a couple of things I noticed as I was looking for more index conversions to simplify.
The above-mentioned change modified the output of thread-local.rs by
changing some variable names. Rather than assume things get put in %0,
we capture the variable so the test passes in both the old and new
version.
Migrate diagnostics in `rustc_borrowck`
sorry for making a new PR, [rust-lang#103559](rust-lang#103559) and [rust-lang#103960](rust-lang#103960).
I am crawling, joyfully.
…code-like-that-anyway, r=oli-obk
fix false positives for `unused_parens` around unary and binary operations
fixrust-lang#110251
…d, r=WaffleLapkin
allow `repr(align = x)` on inherent methods
Discussion: rust-lang#82232 (comment)
Correct default value for default-linker-libraries
This setting is false by default according to rustc code here: https://github.com/rust-lang/rust/blob/master/compiler/rustc_session/src/options.rs#L1236
I tested on a project and confirmed the behavior described. First, with no value, the `-nodefaultlibs` linker flag is present. Setting this to false has no effect, as well. The linker flag still appears. Setting it to true removes the linker flag as expected.
…ros, r=lcnr
Clean up traversal macros
The declarative macros relating to type folding and visiting can be simplified.
r? ``@lcnr``
Various minor Idx-related tweaks
Nothing particularly exciting here, but a couple of things I noticed as I was looking for more index conversions to simplify.
cc rust-lang/compiler-team#606
r? `@WaffleLapkin`
…ram, r=petrochenkov
Encode def span for `ConstParam`
Fixesrust-lang#110206
r? ``@petrochenkov``
…i-obk
Check freeze with right param-env in `deduced_param_attrs`
We're checking if a trait (`Freeze`) holds in a polymorphic function, but not using that function's own (reveal-all) param-env. This causes us to try to eagerly normalize a specializable projection type that has no default value, which causes an ICE.
Fixesrust-lang#110171
tests: adapt for LLVM change 5b386b8
The above-mentioned change modified the output of thread-local.rs by changing some variable names. Rather than assume things get put in %0, we capture the variable so the test passes in both the old and new version.
@rustbotrustbot added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) rollup A PR which is a rollup labels Apr 17, 2023
@matthiaskrgr

Copy link
Copy Markdown
MemberAuthor

@bors r+ rollup=never p=9

@bors

bors commented Apr 17, 2023

Copy link
Copy Markdown
Collaborator

📌 Commit c81e8b8 has been approved by matthiaskrgr

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 17, 2023
@bors

bors commented Apr 17, 2023

Copy link
Copy Markdown
Collaborator

⌛ Testing commit c81e8b8 with merge 31656e7...

@bors

bors commented Apr 17, 2023

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: matthiaskrgr
Pushing 31656e7 to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Apr 17, 2023
@bors
bors merged commit 31656e7 into rust-lang:masterApr 17, 2023
@rustbotrustbot added this to the 1.71.0 milestone Apr 17, 2023
@rust-timer

Copy link
Copy Markdown
Collaborator

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (31656e7): comparison URL.

Overall result: ❌✅ regressions and improvements - ACTION NEEDED

Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please open an issue or create a new PR that fixes the regressions, add a comment linking to the newly created issue or PR, and then add the perf-regression-triaged label to this PR.

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
1.2%[1.2%, 1.2%]3
Improvements ✅
(primary)
-1.1%[-2.9%, -0.3%]12
Improvements ✅
(secondary)
-3.5%[-7.7%, -0.2%]11
All ❌✅ (primary)-1.1%[-2.9%, -0.3%]12

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.

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

Cycles

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

@rustbotrustbot added the perf-regression Performance regression. label Apr 17, 2023
@nnethercote

Copy link
Copy Markdown
Contributor

I think this is all noise: keccak, cranelift-codegen and diesel have just started being noisy.

@rustbot label: +perf-regression-triaged

@rustbotrustbot added the perf-regression-triaged The performance regression has been triaged. label Apr 18, 2023
@matthiaskrgr
matthiaskrgr deleted the rollup-1xcxmgc branch March 16, 2024 18:18
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-query-systemArea: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)merged-by-borsThis PR was explicitly merged by bors.perf-regressionPerformance regression.perf-regression-triagedThe performance regression has been triaged.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.WG-trait-system-refactorThe Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

11 participants

@matthiaskrgr@bors@rust-timer@nnethercote@rustbot@AndyJado@fee1-dead@iterion@scottmcm@compiler-errors@durin42