about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-29 10:27:39 +0000
committerbors <bors@rust-lang.org>2024-08-29 10:27:39 +0000
commit23bea2b2736ac69091df5069282d12887a4d9e4f (patch)
treec41d19ce9f721dae02bf56a911643b76e945af26 /tests/codegen/patchable-function-entry
parent34e7e7954c91fd7731dbc1864193644dc85061a6 (diff)
parent6e387a3fb1a1ab68410fc00b6a981d76b42bcbaa (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions