File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2044,21 +2044,21 @@ A complete list of the built-in language items will be added in the future.
2044
2044
2045
2045
### Inline attributes
2046
2046
2047
- The inline attribute is used to suggest to the compiler to perform an inline
2048
- expansion and place a copy of the function or static in the caller rather than
2049
- generating code to call the function or access the static where it is defined.
2047
+ The inline attribute suggests that the compiler should place a copy of
2048
+ the function or static in the caller, rather than generating code to
2049
+ call the function or access the static where it is defined.
2050
2050
2051
2051
The compiler automatically inlines functions based on internal heuristics.
2052
- Incorrectly inlining functions can actually making the program slower, so it
2052
+ Incorrectly inlining functions can actually make the program slower, so it
2053
2053
should be used with care.
2054
2054
2055
2055
Immutable statics are always considered inlineable unless marked with
2056
2056
` #[inline(never)] ` . It is undefined whether two different inlineable statics
2057
2057
have the same memory address. In other words, the compiler is free to collapse
2058
2058
duplicate inlineable statics together.
2059
2059
2060
- ` #[inline] ` and ` #[inline(always)] ` always causes the function to be serialized
2061
- into crate metadata to allow cross-crate inlining.
2060
+ ` #[inline] ` and ` #[inline(always)] ` always cause the function to be serialized
2061
+ into the crate metadata to allow cross-crate inlining.
2062
2062
2063
2063
There are three different types of inline attributes:
2064
2064
You can’t perform that action at this time.
0 commit comments