Dedicated Display type for CStr::display - #162837
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
75237f3 to
2306228
Compare
This comment has been minimized.
This comment has been minimized.
| } | ||
|
|
||
| #[unstable(feature = "cstr_display", issue = "139984")] | ||
| impl fmt::Debug for Display<'_> { |
There was a problem hiding this comment.
The debug impl on the return value of CStr::display() is new, untested behavior. Should we have a test about what this outputs?
There was a problem hiding this comment.
No equivalent tests for os_str::Display and path::Display, so, it should be fine.
|
r? Darksonn (since you're already doing review, you can defer back to Mark if you want though) |
2306228 to
e171437
Compare
This comment has been minimized.
This comment has been minimized.
|
Looks ok to me. There are still some CI failures to fix. I'll libs nominate it so the rest of the libs team has a chance to comment, but otherwise I'm happy. |
e171437 to
71ef655
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Meeting says ship it. |
Dedicated Display type for CStr::display Tracking issue: rust-lang#139984 Should resolve the FCP concern.
…uwer Rollup of 13 pull requests Successful merges: - #156949 (Detect missing else in let statement) - #160436 (stabilize `Box::take`) - #160570 (macro_metavar_expr_concat: support concatenating into string literals) - #162837 (Dedicated Display type for CStr::display) - #163099 (Use wrapping arithmetic in `from_str_radix`) - #163166 (Tiny cleanups to deferred liveness) - #161667 (Add `f16` inline ASM support for `nvptx64-nvidia-cuda`) - #163063 (Restore `Send` and `Sync` for `BorrowedCursor`) - #163097 (OpenBSD/sparc64 has switched from GCC to Clang) - #163126 (Skip redundant storage-conflict updates during coroutine layout) - #163135 (librustdoc: remove stale dep on base64) - #163146 (tests: Update `f16b` codegen test for LoongArch and RISC-V) - #163159 (treat inductive cycles as ambig)
Tracking issue: #139984
Should resolve the FCP concern.