Skip to content

rustc man page does not match rustc --help output #149875

@h3fang

Description

@h3fang

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

No one assigned

    Labels

    A-docsArea: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions