Skip to content

fix(doc): replace *const i8 with *const c_char - #17662

Merged
rustbot merged 1 commit into
rust-lang:masterfrom
A4-Tacks:doctest-aarch64-fail
Aug 31, 2026
Merged

fix(doc): replace *const i8 with *const c_char#17662
rustbot merged 1 commit into
rust-lang:masterfrom
A4-Tacks:doctest-aarch64-fail

Conversation

@A4-Tacks

Copy link
Copy Markdown
Member

changelog: none

On aarch64, methods::MANUAL_C_STR_LITERALS doc test run failed

On aarch64, 'methods::MANUAL_C_STR_LITERALS' doc test run failed
@rustbot rustbot added the S-waiting-on-community-reviews Status: This is awaiting for positive reviews from the community before a maintainer is assigned. label Aug 31, 2026
@rustbot

rustbot commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request. A reviewer will take a look after it receives 2 community reviews.

In the meantime, we would highly appreciate if you could try to review any of PRs waiting on community reviews.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 31, 2026

@CommanderStorm CommanderStorm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, sure. I don't quite understand why it fails, and how it failes, but seems fairly sensible...

Community review: LGTM

View changes since this review

@A4-Tacks

Copy link
Copy Markdown
Member Author

On different platforms, c_char can be signed char or unsigned char

Both CStr::as_ptr and libc::puts use c_char, but this test case does not have it

fn puts(_: *const i8) {}

fn main() {
    puts(c"World".as_ptr())
       //^^^^^^^^^^^^^^^^^ expected `*const i8`, found `*const u8`
}

@DanielEScherzer DanielEScherzer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

community review: looks good to me

View changes since this review

@rustbot rustbot removed the S-waiting-on-community-reviews Status: This is awaiting for positive reviews from the community before a maintainer is assigned. label Aug 31, 2026
@rustbot

rustbot commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

r? @Jarcho

rustbot has assigned @Jarcho for the project review.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: 9 candidates
  • 9 candidates expanded to 9 candidates
  • Random selection from Jarcho, Manishearth, blyxyas, dswij, llogiq

@Jarcho Jarcho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rustbot
rustbot added this pull request to the merge queue Aug 31, 2026
Merged via the queue into rust-lang:master with commit 850cefd Aug 31, 2026
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants