From 6a5a6d6d70321bb67c79de49a9b8b1469198f440 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 31 Oct 2021 04:42:10 +0000 Subject: [PATCH] Swap --pretty=expanded with -Zunpretty=expanded Apparently the `--pretty` option was dropped in newer rustc, see https://github.com/rust-lang/rust/pull/83491 --- genbindings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\\ -- 2.30.2