Skip to content

Commit 45d2a26

Browse files
committed
Unwrap used
1 parent 9571d4d commit 45d2a26

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/abi.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,9 @@ r[abi.used]
1313
## The `used` attribute
1414

1515
r[abi.used.intro]
16-
The *`used` attribute* can only be applied to [`static` items]. This [attribute] forces the
17-
compiler to keep the variable in the output object file (.o, .rlib, etc. excluding final binaries)
18-
even if the variable is not used, or referenced, by any other item in the crate.
19-
However, the linker is still free to remove such an item.
16+
The *`used` attribute* can only be applied to [`static` items]. This [attribute] forces the 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. However, the linker is still free to remove such an item.
2017

21-
Below is an example that shows under what conditions the compiler keeps a `static` item in the
22-
output object file.
18+
Below is an example that shows under what conditions the compiler keeps a `static` item in the output object file.
2319

2420
``` rust
2521
// foo.rs

0 commit comments

Comments
 (0)