Skip to content

proc_macro/bridge: remove #[repr(C)] from non-ABI-relevant types. #98224

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

Merged
merged 1 commit into from
Jun 19, 2022

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Jun 18, 2022

Not sure how this happened, maybe some of these were passed through the bridge a long time ago?

r? @bjorn3

@rust-highfive

This comment was marked as off-topic.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 18, 2022
@eddyb
Copy link
Member Author

eddyb commented Jun 18, 2022

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jun 18, 2022
@bjorn3
Copy link
Member

bjorn3 commented Jun 18, 2022

The handle store seems to be used by the server at

handle_store: HandleStore<S>,

@eddyb
Copy link
Member Author

eddyb commented Jun 18, 2022

@bjorn3 Yeah but that's all server-side, it doesn't cross the client<->server ABI boundary.

@bjorn3
Copy link
Member

bjorn3 commented Jun 18, 2022

I see. In that case r=me if there is no perf regression.

@mystor
Copy link
Contributor

mystor commented Jun 18, 2022

Not sure how this happened, maybe some of these were passed through the bridge a long time ago?

It wouldn't surprise me too much if at one point in the design process, the ident for TokenStream was directly passed as a function argument rather than being serialized/deserialized through a buffer.

@eddyb
Copy link
Member Author

eddyb commented Jun 19, 2022

Wait, the try build never triggered?

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@bors
Copy link
Collaborator

bors commented Jun 19, 2022

⌛ Trying commit 83545d3 with merge 49b8138e769dd54cfcc5251d464bed219728c2c9...

@bors

This comment was marked as outdated.

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 19, 2022
@rust-log-analyzer

This comment was marked as outdated.

@eddyb
Copy link
Member Author

eddyb commented Jun 19, 2022

(spurious network failures)

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@bors
Copy link
Collaborator

bors commented Jun 19, 2022

⌛ Trying commit 83545d3 with merge fad3f20b02202d8b125bfde50f2aed80e525fb08...

@bors
Copy link
Collaborator

bors commented Jun 19, 2022

☀️ Try build successful - checks-actions
Build commit: fad3f20b02202d8b125bfde50f2aed80e525fb08 (fad3f20b02202d8b125bfde50f2aed80e525fb08)

@rust-timer
Copy link
Collaborator

Queued fad3f20b02202d8b125bfde50f2aed80e525fb08 with parent 5fb8a39, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (fad3f20b02202d8b125bfde50f2aed80e525fb08): comparison url.

Instruction count

  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: 🎉 relevant improvements found
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
N/A N/A 0
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
-0.8% -0.8% 3
All 😿🎉 (primary) N/A N/A 0

Max RSS (memory usage)

Results
  • Primary benchmarks: mixed results
  • Secondary benchmarks: 😿 relevant regressions found
mean1 max count2
Regressions 😿
(primary)
2.7% 2.7% 1
Regressions 😿
(secondary)
3.4% 5.0% 2
Improvements 🎉
(primary)
-2.1% -2.1% 1
Improvements 🎉
(secondary)
N/A N/A 0
All 😿🎉 (primary) 0.3% 2.7% 2

Cycles

Results
  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: 😿 relevant regression found
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
3.8% 3.8% 1
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
N/A N/A 0
All 😿🎉 (primary) N/A N/A 0

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

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf -perf-regression

Footnotes

  1. the arithmetic mean of the percent change 2 3

  2. number of relevant changes 2 3

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Jun 19, 2022
@bjorn3
Copy link
Member

bjorn3 commented Jun 19, 2022

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 19, 2022

📌 Commit 83545d3 has been approved by bjorn3

@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. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 19, 2022
@bors
Copy link
Collaborator

bors commented Jun 19, 2022

⌛ Testing commit 83545d3 with merge 2b646bd...

@bors
Copy link
Collaborator

bors commented Jun 19, 2022

☀️ Test successful - checks-actions
Approved by: bjorn3
Pushing 2b646bd to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jun 19, 2022
@bors bors merged commit 2b646bd into rust-lang:master Jun 19, 2022
@rustbot rustbot added this to the 1.63.0 milestone Jun 19, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (2b646bd): comparison url.

Instruction count

  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: 🎉 relevant improvements found
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
N/A N/A 0
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
-0.7% -0.8% 4
All 😿🎉 (primary) N/A N/A 0

Max RSS (memory usage)

Results
  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: 😿 relevant regressions found
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
1.9% 2.0% 2
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
N/A N/A 0
All 😿🎉 (primary) N/A N/A 0

Cycles

Results
  • Primary benchmarks: 😿 relevant regression found
  • Secondary benchmarks: 😿 relevant regression found
mean1 max count2
Regressions 😿
(primary)
2.5% 2.5% 1
Regressions 😿
(secondary)
2.0% 2.0% 1
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
N/A N/A 0
All 😿🎉 (primary) 2.5% 2.5% 1

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 3

  2. number of relevant changes 2 3

@eddyb eddyb deleted the proc-macro-spurious-repr branch June 19, 2022 22:24
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. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants