Docs build with warnings
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 74/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
Run RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --features all-apis to reproduce the failures. Inspect the unresolved references in src/backend/libc/process/types.rs, src/fs/fd.rs, src/io/dup.rs, src/mm/mmap.rs, src/net/send_recv/mod.rs, src/net/socket.rs, src/pipe.rs, and src/process/rlimit.rs. Done means the documentation build completes without unresolved-link warnings.
由索引模型根据 Issue 内容生成。
描述
$ RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --features all-apis
error: unresolved link to `crate::process::prlimit`
--> src/backend/libc/process/types.rs:16:18
|
16 | /// [`prlimit`]: crate::process::prlimit
| ^^^^^^^^^^^^^^^^^^^^^^^ no item named `prlimit` in module `process`
|
= note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]`
error: unresolved link to `crate::fs::OFlags::PATH`
--> src/fs/fd.rs:121:23
|
121 | /// [`OFlags::PATH`]: crate::fs::OFlags::PATH
| ^^^^^^^^^^^^^^^^^^^^^^^ the struct `OFlags` has no field or associated item named `PATH`
error: unresolved link to `DupFlags::CLOEXEC`
--> src/io/dup.rs:56:42
|
56 | /// set `O_CLOEXEC`, use [`dup3`] with [`DupFlags::CLOEXEC`] on platforms which
| ^^^^^^^^^^^^^^^^^ the struct `DupFlags` has no field or associated item named `CLOEXEC`
error: unresolved link to `mlock_with`
--> src/mm/mmap.rs:283:11
|
283 | /// See [`mlock_with`] to pass additional flags.
| ^^^^^^^^^^ no item named `mlock_with` in scope
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
error: unresolved link to `RecvFlags::TRUNC`
--> src/net/send_recv/mod.rs:34:7
|
34 | /// [`RecvFlags::TRUNC`] flag.
| ^^^^^^^^^^^^^^^^ the struct `RecvFlags` has no field or associated item named `TRUNC`
error: unresolved link to `RecvFlags::TRUNC`
--> src/net/send_recv/mod.rs:113:7
|
113 | /// [`RecvFlags::TRUNC`] flag.
| ^^^^^^^^^^^^^^^^ the struct `RecvFlags` has no field or associated item named `TRUNC`
error: unresolved link to `SocketFlags::CLOEXEC`
--> src/net/socket.rs:17:35
|
17 | /// To pass extra flags such as [`SocketFlags::CLOEXEC`] or
| ^^^^^^^^^^^^^^^^^^^^ the struct `SocketFlags` has no field or associated item named `CLOEXEC`
error: unresolved link to `SocketFlags::NONBLOCK`
--> src/net/socket.rs:18:7
|
18 | /// [`SocketFlags::NONBLOCK`], use [`socket_with`].
| ^^^^^^^^^^^^^^^^^^^^^ the struct `SocketFlags` has no field or associated item named `NONBLOCK`
error: unresolved link to `pipe_with`
--> src/pipe.rs:53:11
|
53 | /// See [`pipe_with`] to pass additional flags.
| ^^^^^^^^^ no item named `pipe_with` in scope
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
error: unresolved link to `prlimit`
--> src/process/rlimit.rs:8:26
|
8 | /// [`setrlimit`], and [`prlimit`].
| ^^^^^^^ no item named `prlimit` in scope
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
error: could not document `rustix`
- 主要语言
- Rust
- 星标
- 2.1k
- 派生
- 298
- 平均合并
- 9 天 3 小时
- 30 天内合并 PR
- 3
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bytecodealliance/rustix 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
bytecodealliance/rustix#1689 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
bytecodealliance/rustix#1660 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
bytecodealliance/rustix#1635 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
bytecodealliance/rustix#1068 ·
-
难度 4/5 3-5 天 新手友好度 35/100
bytecodealliance/rustix#1686 ·
查看 bytecodealliance/rustix 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
TheLarkInn/aipm#2413 ·
-
documentation
难度 1/5 1 小时以内 新手友好度 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
难度 2/5 1-3 小时 新手友好度 75/100
-
todo:ticket
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
taikoxyz/taiko-mono#22168 · 1 条评论 ·