Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ci/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def main():
# if `CI` is set, do a check rather than overwriting
check_only = os.getenv("CI") is not None
run(["rustfmt", "-V"])
run(["rustfmt", "+nightly", "-V"])

fmt_files = []
for dir in FMT_DIRS:
Expand All @@ -33,9 +33,9 @@ def main():
# Run once from workspace root to get everything that wasn't handled as an
# individual file.
if check_only:
run(["cargo", "fmt", "--check"])
run(["cargo", "+nightly", "fmt", "--check"])
else:
run(["cargo", "fmt"])
run(["cargo", "+nightly", "fmt"])

for file in iglob("libc-test/semver/*.txt"):
check_semver_file(Path(file))
Expand Down Expand Up @@ -112,7 +112,7 @@ def enum_sub(m: re.Match) -> str:

# Invoke rustfmt passing via stdin/stdout so we don't need to write the file. Exits
# on failure.
cmd = ["rustfmt", "--config-path=.rustfmt.toml"]
cmd = ["rustfmt", "+nightly", "--config-path=.rustfmt.toml"]
if check_only:
res = check_output(cmd + ["--check"], input=text)

Expand Down