diff options
| author | bors <bors@rust-lang.org> | 2024-08-29 10:27:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-29 10:27:39 +0000 |
| commit | 23bea2b2736ac69091df5069282d12887a4d9e4f (patch) | |
| tree | c41d19ce9f721dae02bf56a911643b76e945af26 /tests/codegen/patchable-function-entry/patchable-function-entry-one-flag.rs | |
| parent | 34e7e7954c91fd7731dbc1864193644dc85061a6 (diff) | |
| parent | 6e387a3fb1a1ab68410fc00b6a981d76b42bcbaa (diff) | |
| download | rust-23bea2b2736ac69091df5069282d12887a4d9e4f.tar.gz rust-23bea2b2736ac69091df5069282d12887a4d9e4f.zip | |
Auto merge of #17975 - IvarWithoutBones:dont-assume-rustup, r=Veykril
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 PR 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-one-flag.rs')
0 files changed, 0 insertions, 0 deletions
