Skip to content

Commit 845540a

Browse files
committed
Mark the inline-threshold option as deprecated and non-functional
See rust-lang#124712 for details.
1 parent ce5e155 commit 845540a

File tree

1 file changed

+1
-14
lines changed
  • src/doc/rustc/src/codegen-options

1 file changed

+1
-14
lines changed

src/doc/rustc/src/codegen-options/index.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -172,20 +172,7 @@ incremental files will be stored.
172172

173173
## inline-threshold
174174

175-
This option lets you set the default threshold for inlining a function. It
176-
takes an unsigned integer as a value. Inlining is based on a cost model, where
177-
a higher threshold will allow more inlining.
178-
179-
The default depends on the [opt-level](#opt-level):
180-
181-
| opt-level | Threshold |
182-
|-----------|-----------|
183-
| 0 | N/A, only inlines always-inline functions |
184-
| 1 | N/A, only inlines always-inline functions and LLVM lifetime intrinsics |
185-
| 2 | 225 |
186-
| 3 | 275 |
187-
| s | 75 |
188-
| z | 25 |
175+
This option is deprecated and does nothing.
189176

190177
## instrument-coverage
191178

0 commit comments

Comments
 (0)