about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Moelius <35515885+smoelius@users.noreply.github.com>2025-08-17 12:55:04 -0400
committerGitHub <noreply@github.com>2025-08-17 12:55:04 -0400
commitcbfa17a9935809f8145c8083bef5f2203820c44a (patch)
treeadc9fe5228896e1b44626eeef2537e0f3eca6689
parent425a9c0a0e365c0b8c6cfd00c2ded83a73bed9a0 (diff)
downloadrust-cbfa17a9935809f8145c8083bef5f2203820c44a.tar.gz
rust-cbfa17a9935809f8145c8083bef5f2203820c44a.zip
Reorder `lto` options from most to least optimizing
-rw-r--r--src/doc/rustc/src/codegen-options/index.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md
index 07eafdf4c4c..445b10188e3 100644
--- a/src/doc/rustc/src/codegen-options/index.md
+++ b/src/doc/rustc/src/codegen-options/index.md
@@ -375,12 +375,12 @@ linking time. It takes one of the following values:
 
 * `y`, `yes`, `on`, `true`, `fat`, or no value: perform "fat" LTO which attempts to
   perform optimizations across all crates within the dependency graph.
-* `n`, `no`, `off`, `false`: disables LTO.
 * `thin`: perform ["thin"
   LTO](http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html).
   This is similar to "fat", but takes substantially less time to run while
   still achieving performance gains similar to "fat".
   For larger projects like the Rust compiler, ThinLTO can even result in better performance than fat LTO.
+* `n`, `no`, `off`, `false`: disables LTO.
 
 If `-C lto` is not specified, then the compiler will attempt to perform "thin
 local LTO" which performs "thin" LTO on the local crate only across its