about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-12-09 08:52:23 +0100
committerRalf Jung <post@ralfj.de>2024-12-09 15:12:33 +0100
commit73dc95dad19e2fa513ea8ac2b76231474398c8ec (patch)
tree76e9fef0593af5d1f0aeead0b7f3ed9d0d67da04 /compiler/rustc_middle/src
parentf33a8c6426074b7ce8d08740e9805fdca96ee150 (diff)
downloadrust-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.rs2
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.