-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Conversation
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.
r? @Nadrieril rustbot has assigned @Nadrieril. Use |
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging. |
To be precise we stopped compressing dylib metadata in #113695. |
@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 |
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 => { |
There was a problem hiding this comment.
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.
This comment has been minimized.
This comment has been minimized.
a969411
to
b84c5ea
Compare
This comment has been minimized.
This comment has been minimized.
b84c5ea
to
3cc0ba8
Compare
There was a problem hiding this 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.
@bors r=jieyouxu,Veykril rollup=never (for easier bisection in case for whatever reason someone runs into this) |
Tagging this with compat relnotes just to be safe, but I don't really expect anyone to run into this. |
☀️ Test successful - checks-actions |
Finished benchmarking commit (145f9cf): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis 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.
CyclesResults (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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 779.567s -> 779.851s (0.04%) |
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