rust-analyzer/xtask
Ivar Scholten 7d9e4fcc07 fix: do not assume rustup is installed in xtask codegen
When formatting generated code the xtask crate attempts to run `rustup run stable rustfmt`,
which fails if `rustup` is not installed. This results in test failures when another source manages
the compiler toolchain, for example when using Nix (or any other distro-specific packaging solution):

* xtask::codegen::grammar::test
* xtask::codegen::assists_doc_tests::test

With this commit xtask will first attempt to run `rustup run stable rustfmt`, and if that fails just
plain `rustfmt`. It still validates a stable version is being used.

This allows `cargo test` to pass on systems that do not use `rustup`.
2024-08-27 14:25:13 +02:00
..
src fix: do not assume rustup is installed in xtask codegen 2024-08-27 14:25:13 +02:00
test_data Split the input/output data of the conversion from the test code to the respective files 2022-12-15 14:25:59 +09:00
Cargo.toml Use josh for subtree syncs 2024-04-21 10:07:08 +03:00