Skip to content

Handle remaining leading :: in paths #4162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

eduardosm
Copy link
Contributor

I looked for [^\w]:: and fixed them manually.

Description

Sources

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot
Copy link
Collaborator

rustbot commented Nov 27, 2024

r? @tgross35

rustbot has assigned @tgross35.
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

@rustbot
Copy link
Collaborator

rustbot commented Nov 27, 2024

Some changes occurred in OpenBSD module

cc @semarie

Some changes occurred in solarish module

cc @jclulow, @pfmooney

@@ -26,7 +26,7 @@ s_no_extra_traits! {
}
}

pub(crate) const _ALIGNBYTES: usize = ::mem::size_of::<c_long>() - 1;
pub(crate) const _ALIGNBYTES: usize = core::mem::size_of::<c_long>() - 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

For anything core:: here, could you use crate:: instead? We realized this is a problem with rustc-dep-of-std (I'm working on fixing the rest)

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually maybe just hold off until I can merge #4161, that will make this a bit easier since it can just be mem::size_of.

Copy link
Contributor

@tgross35 tgross35 Nov 27, 2024

Choose a reason for hiding this comment

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

I stand corrected, this actually shouldn't be a problem. (I think, I'll be adding tests soon). But thanks for changing it anyway.

I looked for `[^\w]::` and fixed them manually.
@tgross35 tgross35 added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Nov 27, 2024
Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

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

Thanks!

@tgross35 tgross35 enabled auto-merge November 27, 2024 20:07
@tgross35 tgross35 added this pull request to the merge queue Nov 27, 2024
Merged via the queue into rust-lang:main with commit 0140785 Nov 27, 2024
45 checks passed
@eduardosm eduardosm deleted the leading-colon-colon branch November 27, 2024 22:03
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Nov 28, 2024
I looked for `[^\w]::` and fixed them manually.

(backport <rust-lang#4162>)
(cherry picked from commit 82d30c6)
@tgross35 tgross35 mentioned this pull request Nov 28, 2024
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants