Skip to content

Commit

Permalink
chore(ffi): update gen_header script to use unpretty option
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Aug 4, 2021
1 parent 9d253d3 commit 91bbce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capi/gen_header.sh
Expand Up @@ -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.
#
Expand Down

0 comments on commit 91bbce4

Please sign in to comment.