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

Remove support for decompressing dylib metadata #132402

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Oct 31, 2024

We haven't been compressing dylib metadata for a while now. Removing decompression support will regress error messages about an incompatible rustc version being used, but dylibs are pretty rare anyway.

Fixes rust-lang/rust-analyzer#18451

We haven't been compressing dylib metadata for a while now. Removing
decompression support will regress error messages about an incompatible
rustc version being used, but dylibs are pretty rare anyway.
@rustbot
Copy link
Collaborator

rustbot commented Oct 31, 2024

r? @Nadrieril

rustbot has assigned @Nadrieril.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 31, 2024
@rustbot
Copy link
Collaborator

rustbot commented Oct 31, 2024

These commits modify the Cargo.lock file. Unintentional changes to Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging.

cc @davidtwco, @wesleywiser

@bjorn3
Copy link
Member Author

bjorn3 commented Oct 31, 2024

To be precise we stopped compressing dylib metadata in #113695.

@bjorn3
Copy link
Member Author

bjorn3 commented Oct 31, 2024

@Veykril rust-analyzer can probably also remove the support it has in rust-analyzer-proc-macro-server at https://github.com/rust-lang/rust-analyzer/blob/1aac2c637b81c2565c68324450582018088aaee6/crates/proc-macro-srv/src/dylib/version.rs#L150

@rustbot
Copy link
Collaborator

rustbot commented Oct 31, 2024

rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.

cc @rust-lang/rust-analyzer

5 | 6 => (&dot_rustc[8..], 13),
7 | 8 => {
let (mut metadata_portion, bytes_before_version) = match version {
8 => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When dylibs switched from compressed to uncompressed metadata the metadata version was set to 8, so anything older than version 8 can't be read anyway without support for compressed metadata.

@rust-log-analyzer

This comment has been minimized.

@bjorn3 bjorn3 force-pushed the remove_snap_decompression branch from a969411 to b84c5ea Compare October 31, 2024 12:30
@rust-log-analyzer

This comment has been minimized.

@bjorn3 bjorn3 force-pushed the remove_snap_decompression branch from b84c5ea to 3cc0ba8 Compare October 31, 2024 12:48
Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks like a good cleanup to me.

@jieyouxu jieyouxu assigned jieyouxu and unassigned Nadrieril Oct 31, 2024
@jieyouxu
Copy link
Member

@bors r=jieyouxu,Veykril rollup=never (for easier bisection in case for whatever reason someone runs into this)

@bors
Copy link
Contributor

bors commented Oct 31, 2024

📌 Commit 3cc0ba8 has been approved by jieyouxu,Veykril

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 31, 2024
@jieyouxu
Copy link
Member

Tagging this with compat relnotes just to be safe, but I don't really expect anyone to run into this.
@rustbot label +relnotes

@rustbot rustbot added the relnotes Marks issues that should be documented in the release notes of the next release. label Oct 31, 2024
@bors
Copy link
Contributor

bors commented Nov 1, 2024

⌛ Testing commit 3cc0ba8 with merge 145f9cf...

@bors
Copy link
Contributor

bors commented Nov 1, 2024

☀️ Test successful - checks-actions
Approved by: jieyouxu,Veykril
Pushing 145f9cf to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Nov 1, 2024
@bors bors merged commit 145f9cf into rust-lang:master Nov 1, 2024
7 checks passed
@rustbot rustbot added this to the 1.84.0 milestone Nov 1, 2024
@bjorn3 bjorn3 deleted the remove_snap_decompression branch November 1, 2024 10:52
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (145f9cf): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

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

Max RSS (memory usage)

Results (primary -1.7%)

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)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.7% [-1.7%, -1.7%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -1.7% [-1.7%, -1.7%] 1

Cycles

Results (secondary -1.5%)

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)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.5% [-1.5%, -1.5%] 1
All ❌✅ (primary) - - 0

Binary size

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

Bootstrap: 779.567s -> 779.851s (0.04%)
Artifact size: 334.97 MiB -> 334.92 MiB (-0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc merged-by-bors This PR was explicitly merged by bors. relnotes Marks issues that should be documented in the release notes of the next release. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove decompression support in proc-macro server
8 participants