We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad55481 commit 3e30935Copy full SHA for 3e30935
1 file changed
compiler/rustc_metadata/src/rmeta/encoder.rs
@@ -735,6 +735,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
735
if tcx.sess.meta_stats() {
736
self.opaque.flush();
737
738
+ // Rewind and re-read all the metadata to count the zero bytes we wrote.
739
let pos_before_rewind = self.opaque.file().stream_position().unwrap();
740
let mut zero_bytes = 0;
741
self.opaque.file().rewind().unwrap();
0 commit comments