]> git.lizzy.rs Git - rust.git/commitdiff
Stop padding metadata
authorSteven Fackler <sfackler@gmail.com>
Sun, 5 Jan 2014 06:03:23 +0000 (22:03 -0800)
committerSteven Fackler <sfackler@gmail.com>
Sun, 5 Jan 2014 06:03:23 +0000 (22:03 -0800)
This is causing maybe_get_doc to fail when called at the top level of
the metadata and doesn't appear to be needed anymore.

src/librustc/metadata/encoder.rs

index d121ebad48ece50562076399c5541382c75d4be0..3b2c77c2ba4932e9c3133a7fc3342816322d0652 100644 (file)
@@ -1912,10 +1912,6 @@ fn encode_metadata_inner(wr: &mut MemWriter, parms: EncodeParams, crate: &Crate)
         println!("      zero bytes: {}", ecx.stats.zero_bytes.get());
         println!("     total bytes: {}", ecx.stats.total_bytes.get());
     }
-
-    // Pad this, since something (LLVM, presumably) is cutting off the
-    // remaining % 4 bytes.
-    ebml_w.writer.write(&[0u8, 0u8, 0u8, 0u8]);
 }
 
 // Get the encoded string for a type