about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-16 15:57:18 +0000
committerbors <bors@rust-lang.org>2020-08-16 15:57:18 +0000
commitf8db258b224bb5616fb550a2a6b780beec9ff3c4 (patch)
treeee82c308cb3dd2b29cbc3f4b691852c755bdf407 /src/test/codegen
parentf0cc006964a557ad9dcf597a7bad356132329b3c (diff)
parent1a140dcc1c933ae84365bd1153372a7430f6f647 (diff)
downloadrust-f8db258b224bb5616fb550a2a6b780beec9ff3c4.tar.gz
rust-f8db258b224bb5616fb550a2a6b780beec9ff3c4.zip
Auto merge of #5912 - ebroto:needless_doctest_main_improvements, r=Manishearth,flip1995
Parse doctests in needless_doctest_main

This switches from text-based search to running the parser to avoid false positives. Inspired by how [rustdoc](https://github.com/rust-lang/rust/blob/3f3250500fe152b5759c21453ba9a9129808d0d8/src/librustdoc/test.rs#L366) handles this and by #4729.

cc @llogiq

changelog: Fix multiple false positives in [`needless_doctest_main`].

Fixes #5879
Fixes #4906
Fixes #5103
Fixes #4698
Diffstat (limited to 'src/test/codegen')
0 files changed, 0 insertions, 0 deletions