From 4fa24bcb54cd11ec9c5e95d6d0ef366e512d27d6 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Mon, 14 Mar 2022 13:28:34 +0300 Subject: rustc: Stricter checking for #[link] attributes --- src/doc/rustc/src/command-line-arguments.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/doc') 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]` -- cgit 1.4.1-3-g733a5