Closed
Description
I tried this code:
struct Context<'a>(&'a ());
/// Working with objects.
///
/// # Safety
///
/// Functions that take indices of locals do not check bounds on these indices;
/// the caller must ensure that the indices are less than the number of locals
/// in the current stack frame.
impl<'a> Context<'a> {}
I expected to see this happen:
Documentation for impl is indented consistently.
Instead, this happened:
The first paragraph is indented more than the safety section:
Meta
rustc --version --verbose
:
rustc 1.86.0 (05f9846f8 2025-03-31)
binary: rustc
commit-hash: 05f9846f893b09a1be1fc8560e33fc3c815cfecb
commit-date: 2025-03-31
host: x86_64-unknown-linux-gnu
release: 1.86.0
LLVM version: 19.1.7