Skip to content

Commit 26f4ebe

Browse files
committed
Revise a comment to include reference to issue #26403.
1 parent 5a15619 commit 26f4ebe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_trans/trans/glue.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,12 @@ pub fn size_and_align_of_dst<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, t: Ty<'tcx>, in
439439

440440
let dbloc = DebugLoc::None;
441441

442-
// #27023 FIXME: We should be adding any necessary padding
442+
// FIXME (#26403, #27023): We should be adding padding
443443
// to `sized_size` (to accommodate the `unsized_align`
444444
// required of the unsized field that follows) before
445-
// summing it with `sized_size`.
445+
// summing it with `sized_size`. (Note that since #26403
446+
// is unfixed, we do not yet add the necessary padding
447+
// here. But this is where the add would go.)
446448

447449
// Return the sum of sizes and max of aligns.
448450
let mut size = Add(bcx, sized_size, unsized_size, dbloc);

0 commit comments

Comments
 (0)