-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
@@ -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; |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
4b03c29
to
82d30c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I looked for `[^\w]::` and fixed them manually. (backport <rust-lang#4162>) (cherry picked from commit 82d30c6)
I looked for
[^\w]::
and fixed them manually.Description
Sources
Checklist
libc-test/semver
have been updated*LAST
or*MAX
areincluded (see #3131)
cd libc-test && cargo test --target mytarget
);especially relevant for platforms that may not be checked in CI