rust/compiler/rustc_errors/src
bors 26f4b72724 Auto merge of #115418 - Zoxc:freeze-source, r=oli-obk
Use `Freeze` for `SourceFile`

This uses the `Freeze` type in `SourceFile` to let accessing `external_src` and `lines` be lock-free.

Behavior of `add_external_src` is changed to set `ExternalSourceKind::AbsentErr` on a hash mismatch which matches the documentation. `ExternalSourceKind::Unneeded` was removed as it's unused.

Based on https://github.com/rust-lang/rust/pull/115401.
2023-09-08 17:20:23 +00:00
..
json Use a builder instead of boolean/option arguments 2023-07-25 13:51:15 +00:00
markdown Unite bless environment variables under RUSTC_BLESS 2023-07-26 16:54:02 -04:00
annotate_snippet_emitter_writer.rs Use Freeze for SourceFile.external_src 2023-09-07 13:04:23 +02:00
diagnostic_builder.rs Remove a redundant field 2023-07-25 13:33:09 +00:00
diagnostic_impls.rs Auto merge of #113281 - dayo05:master, r=davidtwco 2023-07-27 09:20:40 +00:00
diagnostic.rs Add OnceHelp lint level (same as OnceNote, except for help) 2023-09-04 13:54:20 +02:00
emitter.rs Use Freeze for SourceFile.external_src 2023-09-07 13:04:23 +02:00
error.rs Make translate_message return result and add tests 2023-01-08 23:35:43 +01:00
json.rs Use Freeze for SourceFile.external_src 2023-09-07 13:04:23 +02:00
lib.rs Auto merge of #115418 - Zoxc:freeze-source, r=oli-obk 2023-09-08 17:20:23 +00:00
lock.rs bump windows crate 0.46 -> 0.48 in workspace 2023-05-09 18:20:13 +03:00
registry.rs refactor: statically guarantee that current error codes are documented 2023-02-26 20:12:36 +13:00
snippet.rs Create AnnotationColumn struct to fix hard tab column numbers in errors 2023-03-28 09:18:55 -04:00
styled_buffer.rs Replace some _ == _ || _ == _s with matches!(_, _ | _)s 2023-01-30 12:26:26 +00:00
tests.rs correct literals for dyn thread safe 2023-05-06 09:34:53 +08:00
translation.rs Restore behavior when primary bundle is missing 2023-02-23 01:14:10 +01:00