Skip to content

Add new failed_merged_doctest_compilation rustdoc lint#148866

Open
GuillaumeGomez wants to merge 2 commits intorust-lang:mainfrom
GuillaumeGomez:rustdoc-failed_merged_doctest_compilation
Open

Add new failed_merged_doctest_compilation rustdoc lint#148866
GuillaumeGomez wants to merge 2 commits intorust-lang:mainfrom
GuillaumeGomez:rustdoc-failed_merged_doctest_compilation

Conversation

@GuillaumeGomez
Copy link
Member

Finally took the time to write this lint. We need to have a compiler context in order to be able to emit the lint, but I'm not sure if DiagCtxtHandle doesn't provide it somehow... Anyway, I'm expecting performance regression because we keep the compiler and its internals around for much longer, stacking doctests memory on top of the allocated memory to the current crate (which is why I'd really love to see if it's possible to emit lints from DiagCtxtHandle somehow, gonna investigate).

Also: both lint name and lint message are very much up to debate.

r? @fmease

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants