Remove -Zast-json #503
Labels
major-change
A proposal to make a major change to rustc
major-change-accepted
A major change proposal that was accepted
T-compiler
Add this label so rfcbot knows to poll the compiler team
Proposal
In the past the Serialize and Deserialize traits were generic over both json and a binary format. This causes unnecessary complexity and hurts performance. For this reason in ... the Deserialize trait was changed to no longer be suitable for json deserialization. rust-lang/rust#85993 will remove this for the Serialize trait too and switch usages to serde_json instead. The
-Zast-json
implementation however uses this support too. Replacing it with serde_json would likely cause rustc to become bigger. For this reason-Zast-json
is removed by this PR. Any/all current use cases of-Zast-json
can likely migrate to either using rust-analyzer or a custom rustc driver. Switching to serde_json would require changes to said users anyway due to serde_json encoding enums in a way different from rustc_serialize AFAIK.Mentors or Reviewers
If you have a reviewer or mentor in mind for this work, mention then
here. You can put your own name here if you are planning to mentor the
work.
Process
The main points of the Major Change Process are as follows:
@rustbot second
.-C flag
, then full team check-off is required.@rfcbot fcp merge
on either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.
The text was updated successfully, but these errors were encountered: