-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Open
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Location (URL)
https://github.com/rust-lang/rust/blob/main/src/doc/man/rustc.1#L65
Summary
The rustc man page shows
-O
Equivalent to -C opt-level=2.
that's different from rustc output
❯ /usr/bin/rustc --help | grep -- "-O"
-O Equivalent to -C opt-level=3
❯ rustc -V
rustc 1.91.1 (ed61e7d7e 2025-11-07) (Arch Linux rust 1:1.91.1-2)
More information from https://bbs.archlinux.org/viewtopic.php?pid=2277265#p2277265
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.