Stop padding metadata

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.
This commit is contained in:
Steven Fackler 2014-01-04 22:03:23 -08:00
parent bf9a9afc7c
commit 4bc4acd157
1 changed files with 0 additions and 4 deletions

View 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