Skip to content

Commit 6e04ca7

Browse files
oli-obkRalfJung
andauthored
Update src/librustc_mir/interpret/memory.rs
Co-Authored-By: Ralf Jung <[email protected]>
1 parent 796e7a8 commit 6e04ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'mir, 'tcx, M> {
548548
let alloc = self.tcx.alloc_map.lock().get(id);
549549
match alloc {
550550
Some(GlobalAlloc::Static(did)) => {
551-
// Use size and align of the type
551+
// Use size and align of the type.
552552
let ty = self.tcx.type_of(did);
553553
let layout = self.tcx.layout_of(ParamEnv::empty().and(ty)).unwrap();
554554
Ok((layout.size, layout.align.abi))

0 commit comments

Comments
 (0)