diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-09 08:52:23 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-12-09 15:12:33 +0100 |
| commit | 73dc95dad19e2fa513ea8ac2b76231474398c8ec (patch) | |
| tree | 76e9fef0593af5d1f0aeead0b7f3ed9d0d67da04 /compiler/rustc_middle/src | |
| parent | f33a8c6426074b7ce8d08740e9805fdca96ee150 (diff) | |
| download | rust-73dc95dad19e2fa513ea8ac2b76231474398c8ec.tar.gz rust-73dc95dad19e2fa513ea8ac2b76231474398c8ec.zip | |
interpret: clean up deduplicating allocation functions
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index d4835bb07f6..2841470d248 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -1479,7 +1479,7 @@ impl<'tcx> TyCtxt<'tcx> { self.mk_adt_def_from_data(ty::AdtDefData::new(self, did, kind, variants, repr)) } - /// Allocates a read-only byte or string literal for `mir::interpret`. + /// Allocates a read-only byte or string literal for `mir::interpret` with alignment 1. /// Returns the same `AllocId` if called again with the same bytes. pub fn allocate_bytes_dedup(self, bytes: &[u8], salt: usize) -> interpret::AllocId { // Create an allocation that just contains these bytes. |
