1
Fork 0
rust/compiler/rustc_ast/src
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
..
ast mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
attr Auto merge of #78782 - petrochenkov:nodoctok, r=Aaron1011 2020-11-12 00:33:55 +00:00
expand mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
util Auto merge of #78066 - bugadani:wat, r=jonas-schievink 2020-10-18 13:50:31 +00:00
ast.rs Do not collect tokens for doc comments 2020-11-09 01:47:11 +03:00
crate_disambiguator.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
entry.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
lib.rs tidy 2020-09-23 22:08:30 +02:00
mut_visit.rs Auto merge of #78782 - petrochenkov:nodoctok, r=Aaron1011 2020-11-12 00:33:55 +00:00
node_id.rs The renumber pass is long gone 2020-11-06 03:18:01 +01:00
ptr.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
token.rs Suggest expressions that look like const generic arguments should be enclosed in brackets 2020-10-26 21:54:45 +00:00
tokenstream.rs Expand NtExpr tokens only in key-value attributes 2020-11-03 00:53:43 +03:00
visit.rs Auto merge of #78782 - petrochenkov:nodoctok, r=Aaron1011 2020-11-12 00:33:55 +00:00