From 45cd79360f4c16a5a1c489a399ed3ddf249256b2 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Fri, 26 Jul 2024 16:56:04 +0000 Subject: [PATCH] Mark the inline-threshold option as deprecated and non-functional See https://github.com/rust-lang/rust/pull/124712 for details. --- src/doc/rustc/src/codegen-options/index.md | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md index 4a4f1ae98e407..79ab5bd5d1133 100644 --- a/src/doc/rustc/src/codegen-options/index.md +++ b/src/doc/rustc/src/codegen-options/index.md @@ -172,20 +172,7 @@ incremental files will be stored. ## inline-threshold -This option lets you set the default threshold for inlining a function. It -takes an unsigned integer as a value. Inlining is based on a cost model, where -a higher threshold will allow more inlining. - -The default depends on the [opt-level](#opt-level): - -| opt-level | Threshold | -|-----------|-----------| -| 0 | N/A, only inlines always-inline functions | -| 1 | N/A, only inlines always-inline functions and LLVM lifetime intrinsics | -| 2 | 225 | -| 3 | 275 | -| s | 75 | -| z | 25 | +This option is deprecated and does nothing. ## instrument-coverage