Swap --pretty=expanded with -Zunpretty=expanded
authorMatt Corallo <git@bluematt.me>
Sun, 31 Oct 2021 04:42:10 +0000 (04:42 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 31 Oct 2021 18:12:28 +0000 (18:12 +0000)
Apparently the `--pretty` option was dropped in newer
rustc, see https://github.com/rust-lang/rust/pull/83491

genbindings.sh

index f74b2ac61e2f619ffd88dd1209d07e9b49f82ab3..f90aaf0525a8420d28afbe56f8197c121c4b8d57 100755 (executable)
@@ -128,7 +128,7 @@ BIN="$(pwd)/c-bindings-gen/target/release/c-bindings-gen"
 
 function add_crate() {
        pushd "$LIGHTNING_PATH/$1"
 
 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\\
        popd
        if [ "$HOST_PLATFORM" = "host: x86_64-apple-darwin" ]; then
                sed -i".original" "1i\\