rust/compiler
bors 5a6a41e784 Auto merge of #78782 - petrochenkov:nodoctok, r=Aaron1011
Do not collect tokens for doc comments

Doc comment is a single token and AST has all the information to re-create it precisely.
Doc comments are also responsible for majority of calls to `collect_tokens` (with `num_calls == 1` and `num_calls == 0`, cc https://github.com/rust-lang/rust/pull/78736).

(I also moved token collection into `fn parse_attribute` to deduplicate code a bit.)

r? `@Aaron1011`
2020-11-12 00:33:55 +00:00
..
2020-09-11 09:37:51 -07:00
2020-10-30 10:13:39 -04:00
2020-11-09 15:30:49 +00:00
2020-10-30 10:13:41 -04:00
2020-09-23 21:51:56 +02:00
2020-09-23 21:51:56 +02:00
2020-11-05 20:11:29 +01:00
2020-11-09 15:30:49 +00:00