From 91bbce4ed3bb8379bf4f17e30c8df896c32aa731 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Wed, 4 Aug 2021 10:57:23 -0700 Subject: [PATCH] chore(ffi): update gen_header script to use unpretty option --- capi/gen_header.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capi/gen_header.sh b/capi/gen_header.sh index a4460c6295..d0b9c13a32 100755 --- a/capi/gen_header.sh +++ b/capi/gen_header.sh @@ -71,7 +71,7 @@ cp "$CAPI_DIR/include/hyper.h" "$header_file_backup" cd "${WORK_DIR}" || exit 2 # Expand just the ffi module -if ! output=$(RUSTFLAGS='--cfg hyper_unstable_ffi' cargo rustc -- -Z unstable-options --pretty=expanded 2>&1 > expanded.rs); then +if ! output=$(RUSTFLAGS='--cfg hyper_unstable_ffi' cargo rustc -- -Z unpretty=expanded 2>&1 > expanded.rs); then # As of April 2021 the script above prints a lot of warnings/errors, and # exits with a nonzero return code, but hyper.h still gets generated. #