2 # Checks that no error code explanation is removed.
6 if [[ -z "$BASE_COMMIT" ]]; then
7 echo "not checking error code explanations removal"
11 echo "Check if an error code explanation was removed..."
13 if (git diff "$BASE_COMMIT" --name-status | grep '^D' \
14 | grep --quiet "compiler/rustc_error_codes/src/error_codes/"); then
15 echo "Error code explanations should never be removed!"
16 echo "Take a look at E0001 to see how to handle it."
20 echo "No error code explanation was removed!"