From 5b42f79ff088bf3f9136f6f668a481097e22bed9 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Tue, 16 Sep 2014 14:18:37 -0700 Subject: Pop the expansion context after expanding a method macro We were leaving these on the stack, causing spurious backtraces. I've confirmed that this test fails without the fix. --- src/libsyntax/ext/expand.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 4ff9912645a..892213e684f 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -897,7 +897,10 @@ fn expand_method(m: P, fld: &mut MacroExpander) -> SmallVector