diff options
| author | bors <bors@rust-lang.org> | 2023-09-08 17:20:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-08 17:20:23 +0000 |
| commit | 26f4b7272428b181e0a88ad075e5c8f09dcb0e5c (patch) | |
| tree | 414474d281b3ea7204927e0d2ecce11c9e268e22 /compiler/rustc_lint/src | |
| parent | 3cd97ed3c3efe11bf6b63d23dce2515238b78a57 (diff) | |
| parent | c83eba92518166b9e40f43b40683d74c919af0ed (diff) | |
| download | rust-26f4b7272428b181e0a88ad075e5c8f09dcb0e5c.tar.gz rust-26f4b7272428b181e0a88ad075e5c8f09dcb0e5c.zip | |
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.
Diffstat (limited to 'compiler/rustc_lint/src')
0 files changed, 0 insertions, 0 deletions
