Skip to content

Commit 4bc4acd

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 bf9a9af commit 4bc4acd

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
@@ -1912,10 +1912,6 @@ fn encode_metadata_inner(wr: &mut MemWriter, parms: EncodeParams, crate: &Crate)
19121912
println!(" zero bytes: {}", ecx.stats.zero_bytes.get());
19131913
println!(" total bytes: {}", ecx.stats.total_bytes.get());
19141914
}
1915-
1916-
// Pad this, since something (LLVM, presumably) is cutting off the
1917-
// remaining % 4 bytes.
1918-
ebml_w.writer.write(&[0u8, 0u8, 0u8, 0u8]);
19191915
}
19201916

19211917
// Get the encoded string for a type

0 commit comments

Comments
 (0)