]> git.lizzy.rs Git - rust.git/blob - pre_publish.sh
more Use->DropTemps fixes
[rust.git] / pre_publish.sh
1 #!/bin/bash
2
3 set -e
4
5 ./util/update_lints.py
6
7 # add all changed files
8 git add .
9 git commit -m "Bump the version"
10
11 set +e
12
13 echo "Running \`cargo fmt\`.."
14
15 cd clippy_lints && cargo fmt -- --write-mode=overwrite && cd ..
16 cargo fmt -- --write-mode=overwrite
17
18 echo "Running tests to make sure \`cargo fmt\` did not break anything.."
19
20 cargo test
21
22 echo "If the tests passed, review and commit the formatting changes and remember to add a git tag."