Safety section in outer block doc not detected #7327
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Hi
Not a blocker, just noticed an issue with outer block docs.
Given the following code:
I expected to see this pass that clippy lint, escpecially since the docs reflect appropriately.
Instead, clippy outputs:
The problem is that changing the indentation and moving it to the left, fixes the issue, but messes doc rendering of any inlined code in the example section (which I have omitted here).
Meta
cargo clippy -V
: clippy 0.0.212 (7eac88a 2020-11-16). But also reproducible in the playground with latest clippy (https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=8e76ffaa45b5e46af92b9614f44797ec)rustc -Vv
: 1.48.0The text was updated successfully, but these errors were encountered: