Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

Add a version field in the rls-data Analysis structure #16

Merged
merged 1 commit into from
Jul 24, 2018

Conversation

staktrace
Copy link
Contributor

Per the discussion at rust-dev-tools/rls-analysis#130 (comment) it is desirable to have the rls-data crate version number baked into the serialized data. This should accomplish the job, I think, since it looks like the librustc_save_analysis code just uses the the built-in serializer for rls-data.

Already the rls-analysis and librustc_save_analysis code is required to use the same rls-data version in order to be compatible, but this change will enable us to do a better job of checking compatibility at runtime and instead of silently failing. i.e. in the read_crate_data function we should be able to now report the version of rls-data that was used to produce the saved file.

@nrc nrc merged commit 6dc23e7 into rust-dev-tools:master Jul 24, 2018
@nrc
Copy link
Member

nrc commented Jul 24, 2018

Thanks!

@nrc
Copy link
Member

nrc commented Jul 24, 2018

Published 0.17.0 with this change

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants