]> git.lizzy.rs Git - rust.git/commit
Pop the expansion context after expanding a method macro
authorKeegan McAllister <kmcallister@mozilla.com>
Tue, 16 Sep 2014 21:18:37 +0000 (14:18 -0700)
committerKeegan McAllister <kmcallister@mozilla.com>
Wed, 17 Sep 2014 18:18:53 +0000 (11:18 -0700)
commit5b42f79ff088bf3f9136f6f668a481097e22bed9
tree9c4d7112eeb42d948dd4c9f08b8aa00429379de2
parentf85e4f75b9b60e2ce4b2ade8f04e2537e48f7095
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
src/test/compile-fail/method-macro-backtrace.rs [new file with mode: 0644]