]> git.lizzy.rs Git - rust.git/commitdiff
comment
authorRalf Jung <post@ralfj.de>
Wed, 7 Nov 2018 14:36:36 +0000 (15:36 +0100)
committerRalf Jung <post@ralfj.de>
Wed, 7 Nov 2018 15:54:31 +0000 (16:54 +0100)
src/librustc_mir/shim.rs

index 7705396b383a95e7cd81945d43db6775357e05b0..2d548dd8cf10ad4df38000f5cbe70e5c9e3f0645 100644 (file)
@@ -222,6 +222,7 @@ fn build_drop_shim<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
     );
 
     if let Some(..) = ty {
+        // The first argument (index 0), but add 1 for the return value.
         let dropee_ptr = Place::Local(Local::new(1+0));
         if tcx.sess.opts.debugging_opts.mir_emit_retag {
             // We use raw ptr operations, better prepare the alias tracking for that