about summary refs log tree commit diff
path: root/src/doc/rustc
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-03-14 13:28:34 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-05-15 02:45:47 +0300
commit4fa24bcb54cd11ec9c5e95d6d0ef366e512d27d6 (patch)
treeb4cdd23b4393d38383b89a25650f34dabf1ec378 /src/doc/rustc
parent70b3681bf621bc0de91ffab711b2350068b4c466 (diff)
downloadrust-4fa24bcb54cd11ec9c5e95d6d0ef366e512d27d6.tar.gz
rust-4fa24bcb54cd11ec9c5e95d6d0ef366e512d27d6.zip
rustc: Stricter checking for #[link] attributes
Diffstat (limited to 'src/doc/rustc')
-rw-r--r--src/doc/rustc/src/command-line-arguments.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md
index 0d02fa7bd6b..d80e4f20869 100644
--- a/src/doc/rustc/src/command-line-arguments.md
+++ b/src/doc/rustc/src/command-line-arguments.md
@@ -52,7 +52,8 @@ where `KIND` may be one of:
 If the kind is specified, then linking modifiers can be attached to it.
 Modifiers are specified as a comma-delimited string with each modifier prefixed with
 either a `+` or `-` to indicate that the modifier is enabled or disabled, respectively.
-The last boolean value specified for a given modifier wins. \
+Specifying multiple `modifiers` arguments in a single `link` attribute,
+or multiple identical modifiers in the same `modifiers` argument is not currently supported. \
 Example: `-l static:+whole-archive=mylib`.
 
 The kind of library and the modifiers can also be specified in a [`#[link]`