We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a04611 commit c198d98Copy full SHA for c198d98
src/abi.md
@@ -10,8 +10,9 @@ linking external libraries.
10
## The `used` attribute
11
12
The *`used` attribute* can only be applied to [`static` items]. This [attribute] forces the
13
-compiler to keep the variable in the output object file (.o, .rlib, etc.) even if the variable is
14
-not used, or referenced, by any other item in the crate.
+compiler to keep the variable in the output object file (.o, .rlib, etc. excluding final binaries)
+even if the variable is not used, or referenced, by any other item in the crate.
15
+However, the linker is still free to remove such an item.
16
17
Below is an example that shows under what conditions the compiler keeps a `static` item in the
18
output object file.
0 commit comments