Skip to content

Commit bbebf25

Browse files
committed
Change "isn't inlined" to "isn't marked as #[inline]"
1 parent e3b53de commit bbebf25

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/inside-rust/call-for-testing-hint-mostly-unused.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ future.
1515
## Background
1616

1717
When building a Rust library crate, the compiler generates compiled code for as
18-
much of the crate as it can (everything that isn't generic and isn't inlined),
19-
which gets linked into later crates into the dependency graph. However, some
20-
crates provide comprehensive APIs with a very large surface area, yet many of
21-
their users need only a few entry points. In such cases, the compiler currently
22-
spends time generating code for the entire crate, and the linker then ends up
23-
throwing most of that code away as unused.
18+
much of the crate as it can (everything that isn't generic and isn't marked as
19+
`#[inline]`), which gets linked into later crates into the dependency graph.
20+
However, some crates provide comprehensive APIs with a very large surface area,
21+
yet many of their users need only a few entry points. In such cases, the
22+
compiler currently spends time generating code for the entire crate, and the
23+
linker then ends up throwing most of that code away as unused.
2424

2525
This can waste a substantial amount of compile time. Some large crates can take
2626
minutes to compile, and when you use these large crates as dependencies, they

0 commit comments

Comments
 (0)