[rustdoc] Add lint for doc without codeblocks#54349
Conversation
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
7aa21cd to
1256963
Compare
QuietMisdreavus
left a comment
There was a problem hiding this comment.
Nice! Just a couple comments and this looks good.
I wonder whether it's possible to copy out some of the lint registration mechanisms and start hosting them ourselves.
src/librustc/lint/builtin.rs
Outdated
There was a problem hiding this comment.
This may work better as MISSING_DOC_CODE_EXAMPLES - users don't need to care about the fact that docs go on items, and making it plural fits in better with other lints.
There was a problem hiding this comment.
I indeed prefer the new proposition. :)
1256963 to
f23cda1
Compare
|
Updated. |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
f23cda1 to
47872ad
Compare
|
And removed unwanted change. All ready to go now! |
|
Thanks! Can you add a test? Sorry for not noticing earlier. |
47872ad to
c0b7b6e
Compare
|
Rebased and added the test. |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
c0b7b6e to
26479c4
Compare
|
And fixed tidy. |
|
Thanks so much! @bors r+ |
|
📌 Commit 26479c4 has been approved by |
|
⌛ Testing commit 26479c4 with merge 021f0915c2b3f12a0b64cb96d90c40377edf64f2... |
|
💔 Test failed - status-travis |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
@bors retry Linker SIGILL |
|
⌛ Testing commit 26479c4 with merge 151e4590f5fdb15fd6f8780e881eb5fb9ed8af58... |
|
💔 Test failed - status-travis |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
[rustdoc] Add lint for doc without codeblocks Fixes #53805. r? @QuietMisdreavus
|
☀️ Test successful - status-appveyor, status-travis |
Fixes #53805.
r? @QuietMisdreavus