rust-lang / rust-lang/rust

`--verbose` does nothing

Open
#148,323 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-CLI C-bug T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

I tried this code:

fn main() {
    println!("hello world\n");
}

And I compile with rustc --verbose ./main.rs I get no output.

I expected to see this happen: I'd expect something like clang's output where it shows me what linker is used, the include paths etc...

Instead, this happened: nothing.

Meta

rustc --version --verbose:

rustc 1.91.0 (f8297e351 2025-10-28)
binary: rustc
commit-hash: f8297e351a40c1439a467bbbb6879088047f50b3
commit-date: 2025-10-28
host: aarch64-unknown-linux-gnu
release: 1.91.0
LLVM version: 21.1.2

This also happens in nightly;

rustc 1.93.0-nightly (d5419f1e9 2025-10-30)
binary: rustc
commit-hash: d5419f1e97b90741d51841f800d3c697c662567d
commit-date: 2025-10-30
host: aarch64-unknown-linux-gnu
release: 1.93.0-nightly
LLVM version: 21.1.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior with rustc --verbose ./main.rs and inspect the compiler's --verbose argument handling. Compare the intended output with clang's linker and include-path information; done means the flag produces useful compilation details without changing normal compilation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.