]> git.lizzy.rs Git - rust.git/commit
expand: It's always possible to create a dummy AST fragment
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Sun, 7 Jul 2019 15:29:22 +0000 (18:29 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Wed, 10 Jul 2019 21:12:57 +0000 (00:12 +0300)
commit374a80a86de4dabae4975fae04fb67cc6e6dc0bb
tree8b508ec646b7e2bd8e3bc502ce1a96d6fbb20b35
parenteac900ac87828d6a4813f0c4a870bcdb439d1175
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.
src/libsyntax/ext/expand.rs
src/test/ui/macros/trace_faulty_macros.stderr