diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-03-20 20:42:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-20 20:42:44 +0100 |
| commit | 7557c08048a80153c37c79906290cb2c7f4d45f1 (patch) | |
| tree | 4cca3093bb4e2d7063797c3877e9a12f72e3a465 | |
| parent | 3c02b5192e88306271f071d403f14c826524fa90 (diff) | |
| parent | 9da3c355c8057f592d25efc464cec138238b6737 (diff) | |
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 https://github.com/rust-lang/rust/issues/68839#issuecomment-1073118716
| -rw-r--r-- | src/doc/rustc/src/command-line-arguments.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md index 11925ab9785..3759cb632bb 100644 --- a/src/doc/rustc/src/command-line-arguments.md +++ b/src/doc/rustc/src/command-line-arguments.md @@ -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 |
