1
Fork 0

Address review comments

This commit is contained in:
Vadim Petrochenkov 2021-02-07 19:26:33 +03:00
parent f6caae52c1
commit d8af6de911
5 changed files with 52 additions and 0 deletions

View file

@ -141,6 +141,9 @@ impl Annotatable {
}
crate fn into_tokens(self, sess: &ParseSess) -> TokenStream {
// Tokens of an attribute target may be invalidated by some outer `#[derive]` performing
// "full configuration" (attributes following derives on the same item should be the most
// common case), that's why synthesizing tokens is allowed.
nt_to_tokenstream(&self.into_nonterminal(), sess, CanSynthesizeMissingTokens::Yes)
}