Skip to content

Commit d7873b2

Browse files
Don't run doc tests with sanitizer (#1908)
Currently runs into the following error. > mixing `-Zsanitizer` will cause an ABI mismatch in crate `mio` Tracked in rust-lang/rust#147394 and rust-lang/rust#146465.
1 parent 8d330c2 commit d7873b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ test_all: check_all_targets
1717
# NOTE: Requires a nightly compiler.
1818
# NOTE: Keep `RUSTFLAGS` and `RUSTDOCFLAGS` in sync to ensure the doc tests
1919
# compile correctly.
20+
# TODO: remove `--all-targets` once
21+
# <https://github.com/rust-lang/rust/issues/147394> and/or
22+
# <https://github.com/rust-lang/rust/issues/146465> are fixed.
2023
test_sanitizer:
2124
@if [ -z $${SAN+x} ]; then echo "Required '\$$SAN' variable is not set" 1>&2; exit 1; fi
2225
RUSTFLAGS="-Z sanitizer=$$SAN -Z sanitizer-memory-track-origins" \
2326
RUSTDOCFLAGS="-Z sanitizer=$$SAN -Z sanitizer-memory-track-origins" \
24-
cargo test -Z build-std --all-features --target $(RUSTUP_TARGET)
27+
cargo test --all-targets -Z build-std --all-features --target $(RUSTUP_TARGET)
2528

2629
# Check all targets using all features.
2730
check_all_targets: $(TARGETS)

0 commit comments

Comments
 (0)