Skip to content

Commit bbe1a9b

Browse files
committed
save-analysis: two minor bugs
1 parent 4e52595 commit bbe1a9b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/librustc_trans/save/recorder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl<'a> FmtStrs<'a> {
171171

172172
let pairs = fields.iter().zip(values);
173173
let mut strs = pairs.map(|(f, v)| format!(",{},\"{}\"", f, escape(
174-
if *f == "qualname" {
174+
if *f == "qualname" && v.len() > 0 {
175175
let mut n = self.krate.clone();
176176
n.push_str("::");
177177
n.push_str(v);

src/librustc_trans/save/span_utils.rs

-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ impl<'a> SpanUtils<'a> {
293293
if ts.tok == token::Eof {
294294
return None
295295
} else {
296-
println!("found keyword: {} at {}", ts, ts.sp);
297296
return self.make_sub_span(span, Some(ts.sp));
298297
}
299298
}

0 commit comments

Comments
 (0)