diff options
| author | Ivar Scholten <ivar.scholten@protonmail.com> | 2024-08-27 13:59:01 +0200 |
|---|---|---|
| committer | Ivar Scholten <ivar.scholten@protonmail.com> | 2024-08-27 14:25:13 +0200 |
| commit | 6e387a3fb1a1ab68410fc00b6a981d76b42bcbaa (patch) | |
| tree | ce5dbe82313ef3fbe72e734a67851b7f79eb5d94 /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs | |
| parent | f0bfd43b323b2def975379616f34ecfe57048dfd (diff) | |
| download | rust-6e387a3fb1a1ab68410fc00b6a981d76b42bcbaa.tar.gz rust-6e387a3fb1a1ab68410fc00b6a981d76b42bcbaa.zip | |
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`.
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions
