about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-12 00:33:55 +0000
committerbors <bors@rust-lang.org>2020-11-12 00:33:55 +0000
commit5a6a41e7847ff5f85a31b87431ce2af29c567f1d (patch)
treeb3cc63a8e4a72c1520af4c3219282c0f7b2ac2d2 /compiler/rustc_codegen_llvm/src
parent77180db6f81ffdacd14545f1df0a5db55dac1706 (diff)
parent12de1e8985016865ed6baa2262865336bbfdaa75 (diff)
downloadrust-5a6a41e7847ff5f85a31b87431ce2af29c567f1d.tar.gz
rust-5a6a41e7847ff5f85a31b87431ce2af29c567f1d.zip
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`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions