about summary refs log tree commit diff
path: root/src/test/ui/async-await/async-block-control-flow-static-semantics.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-08-01 16:49:32 +0200
committerGitHub <noreply@github.com>2022-08-01 16:49:32 +0200
commit1fa02dd3e958dad25d667fab2037d7a6d4ab3b37 (patch)
treedf97d68e712fafcca0e650224b70ec5a000d1ffe /src/test/ui/async-await/async-block-control-flow-static-semantics.rs
parent8db3d7cfb635356f16fd71dd8e873093799690da (diff)
parenta93feaf6e12bf6a14f65c7ab21c6262796315626 (diff)
downloadrust-1fa02dd3e958dad25d667fab2037d7a6d4ab3b37.tar.gz
rust-1fa02dd3e958dad25d667fab2037d7a6d4ab3b37.zip
Rollup merge of #99976 - willcrichton:example-analyzer, r=jyn514
Make Rustdoc exit with correct error code when scraping examples from invalid files

This PR fixes a small issue with the new Rustdoc scrape-examples feature. If a file that is being scraped has a type error, then currently that error is printed out, but the rustdoc process exits as if it succeeded. This is a problem for Cargo, which needs to track whether scraping succeeded (see rust-lang/cargo#10343).

This PR fixes the issue by checking whether an error is emitted, and aborting if so.
Diffstat (limited to 'src/test/ui/async-await/async-block-control-flow-static-semantics.rs')
0 files changed, 0 insertions, 0 deletions