Open YichiZhang0613 opened 1 week ago
I am not up to speed on why cargo-mirai needs to implement "--version" this way. I'd like to understand it fully before incorporating the suggested change. Can you tell me a bit more about just how I would replicate "When using rustversion with MIRAI"? Also, can you tell me where I can find the code that produces the 'Error: unexpected output from rustc --version' message?
Thanks
Issue
When using rustversion with MIRAI an error will occur
Steps to Reproduce
As mentioned in the documentation
Expected Behavior
No error.
Actual Results
Environment
rustc 1.77.0-nightly (2023-12-29)
Solution
Replace following code in MIRAI/checker/src/cargo-mirai.rs
with
This is an example of a version that meets the format requirements: rustc 1.77.0-nightly (2023-12-29) You can add the required logic according to the version_info obtained to make it meet the format requirements.