about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-07 18:02:40 +0000
committerbors <bors@rust-lang.org>2024-06-07 18:02:40 +0000
commit4dc24ae394a03755cf337bebc8cd2e022a1a4848 (patch)
tree8222b160eb4577803865cd941c4266e3d4da9343 /compiler/rustc_interface/src/errors.rs
parente3c3ce62d7a8328120aa2abf60a34576f3862fde (diff)
parent6aab04e9b7d89af51eb96fcc35d7b3dab96f940a (diff)
downloadrust-4dc24ae394a03755cf337bebc8cd2e022a1a4848.tar.gz
rust-4dc24ae394a03755cf337bebc8cd2e022a1a4848.zip
Auto merge of #125798 - camelid:refactor-doctest, r=GuillaumeGomez
rustdoc: Refactor doctest collection and running code

This code previously had a quite confusing structure, mixing the collection,
processing, and running of doctests with multiple layers of indirection. There
are also many cases where tons of parameters are passed to functions with little
typing information (e.g., booleans or strings are often used).

As a result, the source of bugs is obfuscated (e.g. #81070) and large changes
(e.g.  #123974) become unnecessarily complicated. This PR is a first step to try
to simplify the code and make it easier to follow and less bug-prone.

r? `@GuillaumeGomez`
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions