File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,15 @@ cd "${WORK_DIR}" || exit 2
74
74
if ! output=$( RUSTFLAGS=' --cfg hyper_unstable_ffi' cargo rustc -- -Z unstable-options --pretty=expanded 2>&1 > expanded.rs) ; then
75
75
# As of April 2021 the script above prints a lot of warnings/errors, and
76
76
# exits with a nonzero return code, but hyper.h still gets generated.
77
- echo " $output "
77
+ #
78
+ # However, on Github Actions, this will result in automatic "annotations"
79
+ # being added to files not related to a PR, so if this is `--verify` mode,
80
+ # then don't show it.
81
+ #
82
+ # But yes show it when using it locally.
83
+ if [[ " --verify" != " $1 " ]]; then
84
+ echo " $output "
85
+ fi
78
86
fi
79
87
80
88
# Replace the previous copy with the single expanded file
You can’t perform that action at this time.
0 commit comments