Skip to content

Conversation

@catamorphism
Copy link
Contributor

No description provided.

@bors bors closed this Apr 23, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 20, 2020
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 rust-lang#6022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants