rust/compiler/rustc_parse/src/parser
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
..
attr.rs Do not collect tokens for doc comments 2020-11-09 01:47:11 +03:00
diagnostics.rs Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
expr.rs Fix typo in comments 2020-10-27 14:23:58 -07:00
generics.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
item.rs Use reparsed TokenStream if we captured any inner attributes 2020-11-02 13:22:03 -05:00
mod.rs parser: Cleanup LazyTokenStream and avoid some clones 2020-10-31 01:56:34 +03:00
nonterminal.rs Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
pat.rs rustc_ast: visit_mac -> visit_mac_call 2020-11-03 23:39:51 +03:00
path.rs Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
stmt.rs Detect blocks that could be struct expr bodies 2020-10-07 13:40:52 -07:00
ty.rs Tweak invalid fn header and body parsing 2020-10-25 18:34:14 -07:00