]> git.lizzy.rs Git - rust.git/commitdiff
Revise a comment to include reference to issue #26403.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 29 Jul 2015 17:43:26 +0000 (19:43 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 29 Jul 2015 17:43:26 +0000 (19:43 +0200)
src/librustc_trans/trans/glue.rs

index 67e2e4cba4c34732e8f2bb81d4b0d78051081752..91b20f0b9ded0a2dbe1a9ea14b39ca61e86d4ea8 100644 (file)
@@ -439,10 +439,12 @@ pub fn size_and_align_of_dst<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, t: Ty<'tcx>, in
 
             let dbloc = DebugLoc::None;
 
-            // #27023 FIXME: We should be adding any necessary padding
+            // FIXME (#26403, #27023): We should be adding padding
             // to `sized_size` (to accommodate the `unsized_align`
             // required of the unsized field that follows) before
-            // summing it with `sized_size`.
+            // summing it with `sized_size`. (Note that since #26403
+            // is unfixed, we do not yet add the necessary padding
+            // here. But this is where the add would go.)
 
             // Return the sum of sizes and max of aligns.
             let mut size = Add(bcx, sized_size, unsized_size, dbloc);