Skip to content

Commit 7557c08

Browse files
authored
Rollup merge of #95131 - ehuss:fix-metadata-filename, r=bjorn3
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 #68839 (comment)
2 parents 3c02b51 + 9da3c35 commit 7557c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/rustc/src/command-line-arguments.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The valid emit kinds are:
118118
- `llvm-ir` — Generates a file containing [LLVM IR]. The default output
119119
filename is `CRATE_NAME.ll`.
120120
- `metadata` — Generates a file containing metadata about the crate. The
121-
default output filename is `CRATE_NAME.rmeta`.
121+
default output filename is `libCRATE_NAME.rmeta`.
122122
- `mir` — Generates a file containing rustc's mid-level intermediate
123123
representation. The default output filename is `CRATE_NAME.mir`.
124124
- `obj` — Generates a native object file. The default output filename is

0 commit comments

Comments
 (0)