Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 4 pull requests #132116

Merged
merged 8 commits into from
Oct 24, 2024
Merged

Rollup of 4 pull requests #132116

merged 8 commits into from
Oct 24, 2024

Conversation

matthiaskrgr
Copy link
Member

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

dingxiangfei2009 and others added 8 commits October 24, 2024 01:56
This commit adds new "Textual representation" documentation sections to
SocketAddrV4 and SocketAddrV6, by analogy to the existing
"textual representation" sections of Ipv4Addr and Ipv6Addr.

Rationale: Without documentation about which formats are actually
accepted, it's hard for a programmer to be sure that their code
will actually behave as expected when implementing protocols that
require support (or rejection) for particular representations.
This lack of clarity can in turn can lead to ambiguities and
security problems like those discussed in RFC 6942.

(I've tried to describe the governing RFCs or standards where I
could, but it's possible that the actual implementers had something
else in mind.  I could not find any standards that corresponded
_exactly_ to the one implemented in SocketAddrv6, but I have linked
the relevant documents that I could find.)
…tation, r=tgross35

Document textual format of SocketAddrV{4,6}

This commit adds new "Textual representation" documentation sections to SocketAddrV4 and SocketAddrV6, by analogy to the existing "textual representation" sections of Ipv4Addr and Ipv6Addr.

Rationale: Without documentation about which formats are actually accepted, it's hard for a programmer to be sure that their code will actually behave as expected when implementing protocols that require support (or rejection) for particular representations. This lack of clarity can in turn can lead to ambiguities and security problems like those discussed in RFC 6942.

(I've tried to describe the governing RFCs or standards where I could, but it's possible that the actual implementers had something else in mind.  I could not find any standards that corresponded _exactly_ to the one implemented in SocketAddrv6, but I have linked the relevant documents that I could find.)
…-tail-lifetimes, r=lcnr

Stabilize shorter-tail-lifetimes

Close rust-lang#131445
Tracked by rust-lang#123739

We found a test case `tests/ui/drop/drop_order.rs` that had not been covered by the change. The test fixture is fixed now with the correct expectation.
sanitizer.md: LeakSanitizer is not supported on aarch64 macOS

related to rust-lang#98473
…trochenkov

Remove visit_expr_post from ast Visitor

`visit_expr_post` is only present in the immutable version of ast Visitors and its default implementation is a noop.
Given that its only implementer is on `rustc_lint/src/early.rs` and its name follows the same naming convention as some other lints (`_post`), it seems that `visit_expr_post` being in `Visitor` was a little mistake.

r? `@petrochenkov`

related to rust-lang#128974
@rustbot rustbot added PG-exploit-mitigations Project group: Exploit mitigations 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. T-libs Relevant to the library team, which will review and decide on the PR/issue. rollup A PR which is a rollup labels Oct 24, 2024
@matthiaskrgr
Copy link
Member Author

@bors r+ rollup=never p=4

@bors
Copy link
Contributor

bors commented Oct 24, 2024

📌 Commit a8cea36 has been approved by matthiaskrgr

It is now in the queue for this repository.

@bors bors 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 Oct 24, 2024
@bors
Copy link
Contributor

bors commented Oct 24, 2024

⌛ Testing commit a8cea36 with merge a93c171...

@bors
Copy link
Contributor

bors commented Oct 24, 2024

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

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Oct 24, 2024
@bors bors merged commit a93c171 into rust-lang:master Oct 24, 2024
7 checks passed
@rustbot rustbot added this to the 1.84.0 milestone Oct 24, 2024
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#131790 Document textual format of SocketAddrV{4,6} e08b0f8a05a136048a1ca2ea3ff577497b138bb6 (link)
#131983 Stabilize shorter-tail-lifetimes 5d30201178463079b2aa1a023791f2c8468d2702 (link)
#132097 sanitizer.md: LeakSanitizer is not supported on aarch64 mac… e61e1e04d8f597bfe210cdafed5d8933f2d1c553 (link)
#132107 Remove visit_expr_post from ast Visitor bdf1f6eacffbcbb48e6caa27d516c49317fe66f6 (link)

previous master: 1d4a7670d4

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
Collaborator

Finished benchmarking commit (a93c171): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

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

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
0.3% [0.1%, 1.8%] 49
Regressions ❌
(secondary)
0.8% [0.1%, 1.3%] 6
Improvements ✅
(primary)
-0.3% [-0.3%, -0.3%] 1
Improvements ✅
(secondary)
-0.7% [-1.8%, -0.1%] 3
All ❌✅ (primary) 0.3% [-0.3%, 1.8%] 50

Max RSS (memory usage)

Results (primary 1.0%, secondary 2.1%)

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.

mean range count
Regressions ❌
(primary)
1.0% [0.9%, 1.0%] 2
Regressions ❌
(secondary)
2.1% [2.1%, 2.1%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 1.0% [0.9%, 1.0%] 2

Cycles

Results (primary 1.5%, secondary -1.6%)

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.

mean range count
Regressions ❌
(primary)
1.5% [0.8%, 2.5%] 4
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.6% [-1.6%, -1.6%] 1
All ❌✅ (primary) 1.5% [0.8%, 2.5%] 4

Binary size

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

Bootstrap: 785.158s -> 783.896s (-0.16%)
Artifact size: 333.66 MiB -> 333.71 MiB (0.01%)

@rustbot rustbot added the perf-regression Performance regression. label Oct 25, 2024
@lqd
Copy link
Member

lqd commented Oct 25, 2024

@rust-timer build 5d30201

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (5d30201): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
0.3% [0.1%, 1.7%] 50
Regressions ❌
(secondary)
0.5% [0.1%, 0.9%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.8% [-2.1%, -0.1%] 3
All ❌✅ (primary) 0.3% [0.1%, 1.7%] 50

Max RSS (memory usage)

Results (primary 2.9%, secondary 2.3%)

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.

mean range count
Regressions ❌
(primary)
2.9% [0.9%, 5.0%] 3
Regressions ❌
(secondary)
2.3% [2.3%, 2.3%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.9% [0.9%, 5.0%] 3

Cycles

Results (primary 2.5%, secondary -1.8%)

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.

mean range count
Regressions ❌
(primary)
2.5% [2.5%, 2.5%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.8% [-1.8%, -1.8%] 1
All ❌✅ (primary) 2.5% [2.5%, 2.5%] 1

Binary size

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

Bootstrap: 785.158s -> 785.685s (0.07%)
Artifact size: 333.66 MiB -> 333.69 MiB (0.01%)

@lqd
Copy link
Member

lqd commented Oct 25, 2024

Ah so these are from #131983, were these regressions expected or is there maybe some way to reduce them @dingxiangfei2009 @lcnr?

@dingxiangfei2009
Copy link
Contributor

dingxiangfei2009 commented Oct 26, 2024

@lqd

Ah so these are from #131983, were these regressions expected or is there maybe some way to reduce them @dingxiangfei2009 @lcnr?

Here is my theory. This change will lead to extra data generated for each instance of a tail expression of a block. Given that they are a common occurrence I expected some regression will happen. I won't just sign it off right away, though. I will investigate the pref report now. Thanks for the heads-up!

Also, feel free to pull me into any conversation to look at it together with others over Zulip!

@dingxiangfei2009
Copy link
Contributor

By extra data, I mean we will generate

  • extra ScopeData for each tail expression,
  • extra thir::ExprKind::Scope entry for each tail expression

MIR size should stay roughly the same, however.

@Kobzol
Copy link
Contributor

Kobzol commented Oct 29, 2024

Visiting from weekly triage (thanks @lqd for the perf. run!). It looks like some queries are now being caled more often, e.g. is_copy_raw - could that have been the culprit?

Not marking as triaged yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. PG-exploit-mitigations Project group: Exploit mitigations rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants