We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5db665b commit eb7d47cCopy full SHA for eb7d47c
src/libsyntax/ext/tt/transcribe.rs
@@ -71,7 +71,10 @@ pub fn transcribe(
71
interp: &FxHashMap<Ident, Rc<NamedMatch>>,
72
src: Vec<quoted::TokenTree>,
73
) -> TokenStream {
74
- assert!(src.len() > 0);
+ // Nothing for us to transcribe...
75
+ if src.is_empty() {
76
+ return TokenStream::empty();
77
+ }
78
79
// We descend into the RHS (`src`), expanding things as we go. This stack contains the things
80
// we have yet to expand/are still expanding. We start the stack off with the whole RHS.
0 commit comments