From eb01b17b06eb35542bb80ff7456043b0ed5572ba Mon Sep 17 00:00:00 2001 From: Jakub Bukaj Date: Sun, 9 Nov 2014 16:14:15 +0100 Subject: Complete the removal of ty_nil, ast::LitNil, ast::TyBot and ast::TyUniq [breaking-change] This will break any uses of macros that assumed () being a valid literal. --- src/libsyntax/ext/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/ext/format.rs') diff --git a/src/libsyntax/ext/format.rs b/src/libsyntax/ext/format.rs index a28f24e7663..a816b479630 100644 --- a/src/libsyntax/ext/format.rs +++ b/src/libsyntax/ext/format.rs @@ -654,7 +654,7 @@ impl<'a, 'b> Context<'a, 'b> { // // But the nested match expression is proved to perform not as well // as series of let's; the first approach does. - let pat = self.ecx.pat(self.fmtsp, ast::PatTup(pats)); + let pat = self.ecx.pat_tuple(self.fmtsp, pats); let arm = self.ecx.arm(self.fmtsp, vec!(pat), body); let head = self.ecx.expr(self.fmtsp, ast::ExprTup(heads)); self.ecx.expr_match(self.fmtsp, head, vec!(arm)) -- cgit 1.4.1-3-g733a5