| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-06-06 | fix | Jing Peng | -8/+1 | |
| - remove useless commands from test Makefile - do not unnecessarily remove metadata temporary files because they'll be managed by MaybeTempDir - remove unused FailedRemove error introduced by this PR | ||||
| 2023-06-06 | Write to stdout if `-` is given as output file | Jing Peng | -10/+40 | |
| If `-o -` or `--emit KIND=-` is provided, output will be written to stdout instead. Binary output (`obj`, `llvm-bc`, `link` and `metadata`) being written this way will result in an error unless stdout is not a tty. Multiple output types going to stdout will trigger an error too, as they will all be mixded together. | ||||
| 2023-03-08 | Only compute the crate hash when necessary. | Nicholas Nethercote | -23/+3 | |
| The crate hash is needed: - if debug assertions are enabled, or - if incr. comp. is enabled, or - if metadata is being generated, or - if `-C instrumentation-coverage` is enabled. This commit avoids computing the crate hash when these conditions are all false, such as when doing a release build of a binary crate. It uses `Option` to store the hashes when needed, rather than computing them on demand, because some of them are needed in multiple places and computing them on demand would make compilation slower. The commit also removes `Owner::hash_without_bodies`. There is no benefit to pre-computing that one, it can just be done in the normal fashion. | ||||
| 2023-01-17 | Remove double spaces after dots in comments | Maybe Waffle | -1/+1 | |
| 2022-12-07 | Use `Symbol` for the crate name instead of `String`/`str` | Oli Scherer | -2/+1 | |
| 2022-12-03 | Remove all but one call site of `prepare_outputs` and fetch the value from ↵ | Oli Scherer | -6/+4 | |
| the TyCtxt instead | ||||
| 2022-11-14 | Wrap bundlen static libraries into object files | Daniil Belov | -3/+8 | |
| 2022-08-31 | respond to review feedback: mainly eliminate as many conversions as possible... | Nathan Stocks | -18/+9 | |
| - ... when creating diagnostics in rustc_metadata - use the error_code! macro - pass macro output to diag.code() - use fluent from within manual implementation of SessionDiagnostic - emit the untested errors in case they occur in the wild - stop panicking in the probably-not-dead code, add fixme to write test | ||||
| 2022-08-31 | port fs.rs to SessionDiagnostics | Nathan Stocks | -9/+17 | |
| 2022-07-02 | fall back on the blank path if out_filename is blank | Yoshiki Matsuda | -1/+1 | |
| 2022-07-02 | add some comments for encode_and_write_metadata | Yoshiki Matsuda | -0/+6 | |
| 2022-07-02 | fix an incorrect filename for an error message | Yoshiki Matsuda | -1/+1 | |
| 2022-07-02 | refactor encode_and_write_metadata | Yoshiki Matsuda | -39/+31 | |
| 2022-07-02 | create an empty file even in case of MetadataKind::None | Yoshiki Matsuda | -6/+16 | |
| 2022-07-02 | create tmp directory if there is no parent directory | Yoshiki Matsuda | -1/+1 | |
| 2022-07-02 | call EncodedMetadata::empty in case of MetadataKind::None | Yoshiki Matsuda | -25/+31 | |
| 2022-07-02 | write to a temporary file in Decodable for EncodedMetadata | Yoshiki Matsuda | -7/+7 | |
| 2022-07-02 | hold Mmap in EncodedMetadata | Yoshiki Matsuda | -2/+4 | |
| 2022-07-02 | construct EncodedMetadata in encode_and_write_metadata | Yoshiki Matsuda | -6/+9 | |
| 2022-07-02 | call emit_metadata only when metadata_kind is None | Yoshiki Matsuda | -3/+6 | |
| 2022-07-02 | use rustc_serialize::opaque::FileEncoder | Yoshiki Matsuda | -13/+16 | |
| 2022-07-02 | move encode_and_write_metadata to rustc_metadata::fs | Yoshiki Matsuda | -1/+89 | |
| 2022-07-02 | move emit_metadata to rustc_metadata::fs | Yoshiki Matsuda | -0/+24 | |
