Add missing field to LitKind::Str

This commit is contained in:
Lzu Tao 2019-08-23 08:28:44 +07:00
parent 7a11843853
commit 5b367ed4a3

View file

@ -298,7 +298,7 @@ impl<'tcx> Visitor<'tcx> for PrintVisitor {
},
LitKind::Str(ref text, _) => {
let str_pat = self.next("s");
println!(" if let LitKind::Str(ref {}) = {}.node;", str_pat, lit_pat);
println!(" if let LitKind::Str(ref {}, _) = {}.node;", str_pat, lit_pat);
println!(" if {}.as_str() == {:?}", str_pat, &*text.as_str())
},
}