Auto merge of #4438 - lzutao:author-litstr-missing, r=phansch
Add missing field to LitKind::Str changelog: none
This commit is contained in:
commit
a175ca4e8e
@ -298,7 +298,7 @@ fn visit_expr(&mut self, expr: &Expr) {
|
||||
},
|
||||
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())
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user