mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
save-analysis: two minor bugs
This commit is contained in:
parent
4e5259503c
commit
bbe1a9b9c1
@ -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);
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user