Skip to content

Commit

Permalink
Swap --pretty=expanded with -Zunpretty=expanded
Browse files Browse the repository at this point in the history
Apparently the `--pretty` option was dropped in newer
rustc, see rust-lang/rust#83491
  • Loading branch information
TheBlueMatt committed Oct 31, 2021
1 parent fee27c4 commit 6a5a6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genbindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ BIN="$(pwd)/c-bindings-gen/target/release/c-bindings-gen"

function add_crate() {
pushd "$LIGHTNING_PATH/$1"
RUSTC_BOOTSTRAP=1 cargo rustc --profile=check $3 -- -Zunstable-options --pretty=expanded > /tmp/$1-crate-source.txt
RUSTC_BOOTSTRAP=1 cargo rustc --profile=check $3 -- -Zunpretty=expanded > /tmp/$1-crate-source.txt
popd
if [ "$HOST_PLATFORM" = "host: x86_64-apple-darwin" ]; then
sed -i".original" "1i\\
Expand Down

0 comments on commit 6a5a6d6

Please sign in to comment.