From: Matt Corallo Date: Sun, 31 Oct 2021 04:42:10 +0000 (+0000) Subject: Swap --pretty=expanded with -Zunpretty=expanded X-Git-Tag: v0.0.103.0^2~17 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=6a5a6d6d70321bb67c79de49a9b8b1469198f440;p=ldk-c-bindings Swap --pretty=expanded with -Zunpretty=expanded Apparently the `--pretty` option was dropped in newer rustc, see https://github.com/rust-lang/rust/pull/83491 --- diff --git a/genbindings.sh b/genbindings.sh index f74b2ac..f90aaf0 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -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\\