diff --git a/ci/style.sh b/ci/style.sh old mode 100644 new mode 100755 index 923e675b86d32..ea8f841f71417 --- a/ci/style.sh +++ b/ci/style.sh @@ -1,9 +1,8 @@ -#!/usr/bin/env sh +#!/bin/sh set -ex -rustc ci/style.rs && ./style src - +rustc ci/style.rs && ./style v rustup toolchain install nightly -c rustfmt --allow-downgrade rustup override set nightly command -v rustfmt @@ -18,3 +17,13 @@ else exit 1 fi +for file in libc-test/semver/*.txt; do + case "$file" in + *TODO*) continue ;; + esac + + if ! sort -C "$file"; then + echo "Unsorted semver file $file" + exit 1 + fi +done