about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-11-12 14:30:34 +0000
committerbors <bors@rust-lang.org>2022-11-12 14:30:34 +0000
commit8ef2485bd59cad3674b9c7de29316c20d7ddc6e7 (patch)
tree0f5a468b9b61a80e457f3181a048e05d40a6a7e3 /compiler/rustc_codegen_llvm/src/builder.rs
parentaa05f99001924004757ebd44b54bb6a4dd30c8bd (diff)
parentb2da155a9aae875e6c2f5df52d8f87e734c88be7 (diff)
downloadrust-8ef2485bd59cad3674b9c7de29316c20d7ddc6e7.tar.gz
rust-8ef2485bd59cad3674b9c7de29316c20d7ddc6e7.zip
Auto merge of #103812 - clubby789:improve-include-bytes, r=petrochenkov
Delay `include_bytes` to AST lowering

Hopefully addresses #65818.
This PR introduces a new `ExprKind::IncludedBytes` which stores the path and bytes of a file included with `include_bytes!()`. We can then create a literal from the bytes during AST lowering, which means we don't need to escape the bytes into valid UTF8 which is the cause of most of the overhead of embedding large binary blobs.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions