mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
add a comment about counting zero bytes
This commit is contained in:
parent
ad55481043
commit
3e309350d2
@ -735,6 +735,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
|
||||
if tcx.sess.meta_stats() {
|
||||
self.opaque.flush();
|
||||
|
||||
// Rewind and re-read all the metadata to count the zero bytes we wrote.
|
||||
let pos_before_rewind = self.opaque.file().stream_position().unwrap();
|
||||
let mut zero_bytes = 0;
|
||||
self.opaque.file().rewind().unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user