diff options
| author | bors <bors@rust-lang.org> | 2023-08-28 05:15:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-28 05:15:56 +0000 |
| commit | 41cb42a370b35707a75c79ff9ab6af1191b638fb (patch) | |
| tree | c36b9d3ee534c593067b7b9f1c8e00c1d48e9e3d /compiler/rustc_span/src/lib.rs | |
| parent | f7dd70c3c9edeecdbedf4d80c83317c50a817756 (diff) | |
| parent | f26293dca4a4bc2fa6158964546617a6a34da639 (diff) | |
| download | rust-41cb42a370b35707a75c79ff9ab6af1191b638fb.tar.gz rust-41cb42a370b35707a75c79ff9ab6af1191b638fb.zip | |
Auto merge of #115296 - saethlin:dont-duplicate-allocs, r=jackh726
Load include_bytes! directly into an Lrc This PR deletes an innocent-looking `.into()` that was converting from a `Vec<u8>` to `Lrc<[u8]>`. This has significant runtime and memory overhead when using `include_bytes!` to pull in a large binary file.
Diffstat (limited to 'compiler/rustc_span/src/lib.rs')
| -rw-r--r-- | compiler/rustc_span/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs index efaed0f68ce..62fe49fe2a2 100644 --- a/compiler/rustc_span/src/lib.rs +++ b/compiler/rustc_span/src/lib.rs @@ -21,6 +21,8 @@ #![feature(rustc_attrs)] #![feature(let_chains)] #![feature(round_char_boundary)] +#![feature(read_buf)] +#![feature(new_uninit)] #![deny(rustc::untranslatable_diagnostic)] #![deny(rustc::diagnostic_outside_of_impl)] #![allow(internal_features)] |
