Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compiler/rustc_metadata/src/rmeta/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
macro_rules! stat {
($label:literal, $f:expr) => {{
let orig_pos = self.position();
$label.encode(&mut self.opaque);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe format!("<<{}>>", $label).encode(&mut self.opaque) to make it a bit clearer that it is a label rather than just a random string?

let res = $f();
stats.push(($label, self.position() - orig_pos));
res
Expand Down
Loading