Skip to content

Commit

Permalink
Rollup merge of rust-lang#95131 - ehuss:fix-metadata-filename, r=bjorn3
Browse files Browse the repository at this point in the history
Fix docs for default rmeta filename.

The docs for the default filename for `--emit=metadata` was wrong, it was missing the `lib` prefix.  The current implementation for that default is [here](https://github.com/rust-lang/rust/blob/f2661cfe341f88bea919daf52a07015dceaf7a6a/compiler/rustc_session/src/output.rs#L140).  Perhaps somewhat confusing, but `lib` is used for all crate types.

cc rust-lang#68839 (comment)
  • Loading branch information
matthiaskrgr authored Mar 20, 2022
2 parents 3c02b51 + 9da3c35 commit 7557c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/rustc/src/command-line-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ The valid emit kinds are:
- `llvm-ir` — Generates a file containing [LLVM IR]. The default output
filename is `CRATE_NAME.ll`.
- `metadata` — Generates a file containing metadata about the crate. The
default output filename is `CRATE_NAME.rmeta`.
default output filename is `libCRATE_NAME.rmeta`.
- `mir` — Generates a file containing rustc's mid-level intermediate
representation. The default output filename is `CRATE_NAME.mir`.
- `obj` — Generates a native object file. The default output filename is
Expand Down

0 comments on commit 7557c08

Please sign in to comment.