expand: It's always possible to create a dummy AST fragment

Remove a bunch of `Option`s that assumed that dummy fragment creation could fail.

The test output changed due to not performing the expansion in `fn expand_invoc` in case of the recursion limit hit.
This commit is contained in:
Vadim Petrochenkov 2019-07-07 18:29:22 +03:00
parent eac900ac87
commit 374a80a86d
2 changed files with 39 additions and 46 deletions

View file

@ -45,8 +45,6 @@ LL | my_recursive_macro!();
= note: to `my_recursive_macro ! ( ) ;`
= note: expanding `my_recursive_macro! { }`
= note: to `my_recursive_macro ! ( ) ;`
= note: expanding `my_recursive_macro! { }`
= note: to `my_recursive_macro ! ( ) ;`
error: aborting due to 2 previous errors