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:
parent
bf9a9afc7c
commit
4bc4acd157
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue