From bbe1a9b9c18d6dce6140ef16cbc9c29ad586564d Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Mon, 24 Nov 2014 14:10:16 +1300 Subject: [PATCH] save-analysis: two minor bugs --- src/librustc_trans/save/recorder.rs | 2 +- src/librustc_trans/save/span_utils.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustc_trans/save/recorder.rs b/src/librustc_trans/save/recorder.rs index 8eda199af3b..e245878dd87 100644 --- a/src/librustc_trans/save/recorder.rs +++ b/src/librustc_trans/save/recorder.rs @@ -171,7 +171,7 @@ impl<'a> FmtStrs<'a> { let pairs = fields.iter().zip(values); let mut strs = pairs.map(|(f, v)| format!(",{},\"{}\"", f, escape( - if *f == "qualname" { + if *f == "qualname" && v.len() > 0 { let mut n = self.krate.clone(); n.push_str("::"); n.push_str(v); diff --git a/src/librustc_trans/save/span_utils.rs b/src/librustc_trans/save/span_utils.rs index e01081d8422..f76f2bea566 100644 --- a/src/librustc_trans/save/span_utils.rs +++ b/src/librustc_trans/save/span_utils.rs @@ -293,7 +293,6 @@ impl<'a> SpanUtils<'a> { if ts.tok == token::Eof { return None } else { - println!("found keyword: {} at {}", ts, ts.sp); return self.make_sub_span(span, Some(ts.sp)); } }