Skip to content

Commit c274a68

Browse files
committed
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.
1 parent 11ce6b7 commit c274a68

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustc/metadata/encoder.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,10 +1906,6 @@ pub fn encode_metadata(parms: EncodeParams, crate: &Crate) -> ~[u8] {
19061906
println!(" total bytes: {}", ecx.stats.total_bytes.get());
19071907
}
19081908

1909-
// Pad this, since something (LLVM, presumably) is cutting off the
1910-
// remaining % 4 bytes.
1911-
ebml_w.writer.write(&[0u8, 0u8, 0u8, 0u8]);
1912-
19131909
// This is a horrible thing to do to the outer MemWriter, but thankfully we
19141910
// don't use it again so... it's ok right?
19151911
return util::replace(ebml_w.writer.inner_mut_ref(), ~[]);

0 commit comments

Comments
 (0)