about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-06-19 19:42:55 -0700
committerGitHub <noreply@github.com>2020-06-19 19:42:55 -0700
commit17b80d947dccb7d73efbffd8fe6e8ae28af759ee (patch)
tree652ff7e09b1e54ce928ee1911a658b6bbd3247cd /src/doc
parent2d1bd57e60a141fc2a460539b69e228cc1d7010e (diff)
parent0a65f280c8eac844a74b758822ca52e8763a1d5d (diff)
downloadrust-17b80d947dccb7d73efbffd8fe6e8ae28af759ee.tar.gz
rust-17b80d947dccb7d73efbffd8fe6e8ae28af759ee.zip
Rollup merge of #73347 - tmiasko:incompatible-sanitizers, r=nikic
Diagnose use of incompatible sanitizers

Emit an error when incompatible sanitizer are configured through command
line options. Previously the last one configured prevailed and others
were silently ignored.

Additionally use a set to represent configured sanitizers, making it
possible to enable multiple sanitizers at once. At least in principle,
since currently all of them are considered to be incompatible with
others.
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/unstable-book/src/compiler-flags/sanitizer.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/sanitizer.md b/src/doc/unstable-book/src/compiler-flags/sanitizer.md
index 7ebd8054ba0..5e2e04c063b 100644
--- a/src/doc/unstable-book/src/compiler-flags/sanitizer.md
+++ b/src/doc/unstable-book/src/compiler-flags/sanitizer.md
@@ -12,8 +12,7 @@ This feature allows for use of one of following sanitizers:
 * [ThreadSanitizer][clang-tsan] a fast data race detector.
 
 To enable a sanitizer compile with `-Zsanitizer=address`, `-Zsanitizer=leak`,
-`-Zsanitizer=memory` or `-Zsanitizer=thread`. Only a single sanitizer can be
-enabled at a time.
+`-Zsanitizer=memory` or `-Zsanitizer=thread`.
 
 # AddressSanitizer