Skip to content

Commit b0578c2

Browse files
committed
Enable tests docs under sanitizer again
The relevant issue: github.com/rust-lang/rust/issues/146465 has been resolved so this should work again.
1 parent f36136a commit b0578c2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ 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.
2320
test_sanitizer:
2421
@if [ -z $${SAN+x} ]; then echo "Required '\$$SAN' variable is not set" 1>&2; exit 1; fi
2522
RUSTFLAGS="-Z sanitizer=$$SAN -Z sanitizer-memory-track-origins" \
2623
RUSTDOCFLAGS="-Z sanitizer=$$SAN -Z sanitizer-memory-track-origins" \
27-
cargo test --all-targets -Z build-std --all-features --target $(RUSTUP_TARGET)
24+
cargo test -Z build-std --all-features --target $(RUSTUP_TARGET)
2825

2926
# Check all targets using all features.
3027
check_all_targets: $(TARGETS)

0 commit comments

Comments
 (0)