Skip to content

Commit 8f89123

Browse files
authored
rawdir: Use ignore, not notrust (#1087)
- Fixes the problem that the prelude comments show up in the docs, including the confusing comment " # // The `notrust` above can be removed when we can depend on Rust 1.65." because the reader can't *see* the `notrust` - I parsed `notrust` as "no-trust" and thought there was some security thing The `ignore` attribute AFAICS is intended for these situations.
1 parent 29af8fc commit 8f89123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fs/raw_dir.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ impl<'buf, Fd: AsFd> RawDir<'buf, Fd> {
8989
/// Heap allocated growing buffer for supporting directory entries with
9090
/// arbitrarily large file names:
9191
///
92-
/// ```notrust
93-
/// # // The `notrust` above can be removed when we can depend on Rust 1.65.
92+
/// ```ignore
93+
/// # // The `ignore` above can be removed when we can depend on Rust 1.65.
9494
/// # use std::mem::MaybeUninit;
9595
/// # use rustix::fs::{CWD, Mode, OFlags, openat, RawDir};
9696
/// # use rustix::io::Errno;

0 commit comments

Comments
 (0)