about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-18 06:57:21 +0000
committerbors <bors@rust-lang.org>2020-12-18 06:57:21 +0000
commit88323e856d01650f6477350ad1304c26497b8ff7 (patch)
tree4cb22d79b06c214e4c3452e8dac093119f27f6ab /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent5c00931642357c835d5ba292d8c642ef7389021b (diff)
parentbb68ec6cfc76a6ec69d21c0f64dbc4aa99158958 (diff)
downloadrust-88323e856d01650f6477350ad1304c26497b8ff7.tar.gz
rust-88323e856d01650f6477350ad1304c26497b8ff7.zip
Auto merge of #6458 - ebroto:6022_parse_doctest, r=Manishearth
needless_doctest_main: handle correctly parse errors

Before this change, finding an error when parsing a doctest would make Clippy exit without emitting an error. Now we properly catch a fatal error and ignore it.

Also, if a doctest specifies an edition in the info line, it will be used when parsing it.

changelog: needless_doctest_main: handle correctly parse errors

Fixes #6022
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions