diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2024-09-04 22:43:41 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:02:19 +0100 |
| commit | ccd14e0f6d436ac87dc2e4fa46909af71446b7aa (patch) | |
| tree | db3478e7e10eea869a202b67debd5a8b32d9e661 /rust/kernel/static_assert.rs | |
| parent | 4683233e97c0d5a11e4c731ba5b3d8fbe3497ab2 (diff) | |
| download | linux-ccd14e0f6d436ac87dc2e4fa46909af71446b7aa.tar.gz linux-ccd14e0f6d436ac87dc2e4fa46909af71446b7aa.tar.bz2 linux-ccd14e0f6d436ac87dc2e4fa46909af71446b7aa.zip | |
rust: rbtree: fix `SAFETY` comments that should be `# Safety` sections
[ Upstream commit 8333ff4d0799aafbe4275cddcbaf45e545e4efba ]
The tag `SAFETY` is used for safety comments, i.e. `// SAFETY`, while a
`Safety` section is used for safety preconditions in code documentation,
i.e. `/// # Safety`.
Fix the three instances recently added in `rbtree` that Clippy would
have normally caught in a public item, so that we can enable checking
of private items in one of the following commits.
Fixes: 98c14e40e07a ("rust: rbtree: add cursor")
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Tested-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://lore.kernel.org/r/20240904204347.168520-14-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'rust/kernel/static_assert.rs')
0 files changed, 0 insertions, 0 deletions
