-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc skips first line of some list items, and incorrect clippy warning #133150
Comments
If I remove the |
cargo doc
skips first line of some list items for no apparent reason, and incorrect clippy warningcargo doc
skips first line of some list items, and incorrect clippy warning
Thank you for discovering increasingly fascinating edge-cases. |
cargo doc
skips first line of some list items, and incorrect clippy warning
It does the same thing when I strip the As a better workaround, write a collapsed link instead of a shortcut link: - [`SDL_PROP_WINDOW_CREATE_COCOA_WINDOW_POINTER`][]: the
`(__unsafe_unretained)` NSWindow associated with the window, if you want
to wrap an existing window.
- [`SDL_PROP_WINDOW_CREATE_COCOA_VIEW_POINTER`][]: the `(__unsafe_unretained)`
NSView associated with the window, defaults to `[window contentView]`
|
rust-lang/rust#133150 This is more likely to be intended as an intra-doc link than it is to be intended as a refdef. If a refdef is intended, it does not need to be nested within a list item. ```markdown - [`LONG_INTRA_DOC_LINK`]: this looks like an intra-doc link, but is actually a refdef. The first line will seem to disappear when rendered as HTML. ``` > - [`LONG_INTRA_DOC_LINK`]: this > looks like an intra-doc link, > but is actually a refdef. > The first line will seem to > disappear when rendered as HTML. changelog: [`doc_nested_refdefs`]: add suspicious lint for link def at start of list items and block quotes
I tried this code (minimal reproduction
lib.rs
):When I run
cargo doc
on this, there are no warnings or errors, but the output is wrong. The first line of the first list item ofa
is missing, and the first line of the second list item ofb
is also missing.If I run
cargo clippy
on the file it complains:But this makes no sense. Those lines have the correct indentation, same as the previous lines. It seems to think there's a new sublist getting created at the end of the first lines, but I don't see why
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: