Skip to content

Conversation

@Alexendoo
Copy link
Member

@Alexendoo Alexendoo commented Oct 28, 2025

Now only tokenizes the contents of code blocks instead of spawning a thread for a full parser

The language tag handling now correctly picks up things like rust, ignore

no_test (#10491) is no longer specially handled, rustdoc considers rust,no_test to be a regular test

changelog: [needless_doctest_main], [test_attr_in_doctest]: now handles whitespace in language tags

@rustbot
Copy link
Collaborator

rustbot commented Oct 28, 2025

Some changes occurred in clippy_lints/src/doc

cc @notriddle

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 28, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 28, 2025

r? @dswij

rustbot has assigned @dswij.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@github-actions
Copy link

Lintcheck changes for 0ff3a38

Lint Added Removed Changed
clippy::needless_doctest_main 2 24 11
clippy::test_attr_in_doctest 2 0 1

This comment will be updated if you push new changes

Copy link
Member

@dswij dswij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dswij dswij added this pull request to the merge queue Oct 30, 2025
Merged via the queue into rust-lang:master with commit 5e7ce90 Oct 30, 2025
11 of 13 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 30, 2025
@Alexendoo Alexendoo deleted the doc-tokenize branch October 30, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants