Auto merge of #4438 - lzutao:author-litstr-missing, r=phansch

Add missing field to LitKind::Str

changelog: none
This commit is contained in:
bors 2019-08-23 11:12:04 +00:00
commit a175ca4e8e

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())
},
}