Skip to content

Commit 2d2b7c0

Browse files
Make JSON output from -Zprofile-json valid
1 parent 6acbb5b commit 2d2b7c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/util/profiling.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ macro_rules! define_categories {
102102
};
103103

104104
json.push_str(&format!(
105-
"{{ \"category\": {}, \"time_ms\": {},
105+
"{{ \"category\": \"{}\", \"time_ms\": {},\
106106
\"query_count\": {}, \"query_hits\": {} }},",
107107
stringify!($name),
108108
self.times.$name / 1_000_000,

0 commit comments

Comments
 (0)