Description
I installed rustfmt code from scratch and the "cargo make test" failed with errors.
Following are the install process steps to reproduce the problem:
-
On https://github.com/rust-lang/rustfmt "fork" the repository.
-
On your local machine clone the repository form the fork: "git clone <forked repository>"
-
Set environment variables for cargo make:
export CFG_RELEASE_CHANNEL=nightly; export CFG_RELEASE=1.47.0-nightly
("1.47.0-nightly" is from "rustc -vV") -
Run "cargo make test" - rustfmt version "2.0.0-rc.2-nightly" is built
Two errors are shown:
-
Panic at 'config::test::test_merged_config'
I was able to fix this issue by switching to branch "1.4.20". It may be that the default master branch should be the latest 1.x and not 2.x. -
Formatting "tests/parser/issue-4126/invalid.rs" fails
This issue happens with both 1.x and 2.x versions and I was not able to fix it. PR handle recoverable submod parse errors correctly #4200 that fixes rustfmt deletes lines instead of detecting a syntax error #4126 is listed as Merged, but when I look in the cloned code I don't see these changes. Also, https://play.rust-lang.org/ fails with the same error.