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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) {
}
}
if line.contains("#[derive(") && (line.contains("Copy") || line.contains("Clone")) {
err.error(path, i, "impl ::Copy and ::Clone manually");
err.error(path, i, "impl Copy and Clone manually");
}
if line.contains("impl") {
in_impl = true;
Expand Down
2 changes: 1 addition & 1 deletion src/fuchsia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2062,7 +2062,7 @@ pub const WEXITED: c_int = 0x00000004;
pub const WCONTINUED: c_int = 0x00000008;
pub const WNOWAIT: c_int = 0x01000000;

// ::Options set using PTRACE_SETOPTIONS.
// Options set using PTRACE_SETOPTIONS.
pub const PTRACE_O_TRACESYSGOOD: c_int = 0x00000001;
pub const PTRACE_O_TRACEFORK: c_int = 0x00000002;
pub const PTRACE_O_TRACEVFORK: c_int = 0x00000004;
Expand Down
2 changes: 1 addition & 1 deletion src/teeos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ extern "C" {
pub fn pthread_cond_timedwait(
cond: *mut pthread_cond_t,
lock: *mut pthread_mutex_t,
abstime: *const ::timespec,
abstime: *const timespec,
) -> c_int;

pub fn pthread_mutexattr_setrobust(attr: *mut pthread_mutexattr_t, robustness: c_int) -> c_int;
Expand Down
2 changes: 1 addition & 1 deletion src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ s! {
pub si_status: c_int,
pub si_addr: *mut c_void,
//Requires it to be union for tests
//pub si_value: ::sigval,
//pub si_value: crate::sigval,
_pad: [usize; 9],
}

Expand Down
4 changes: 2 additions & 2 deletions src/unix/bsd/netbsdlike/netbsd/riscv64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ s! {
pub struct mcontext_t {
pub __gregs: __gregset,
pub __fregs: __fpregset,
__spare: [::__greg_t; 7],
__spare: [crate::__greg_t; 7],
}
}

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

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

pub const PT_GETREGS: c_int = PT_FIRSTMACH + 0;
pub const PT_SETREGS: c_int = PT_FIRSTMACH + 1;
Expand Down
2 changes: 1 addition & 1 deletion src/unix/bsd/netbsdlike/openbsd/arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ pub type c_long = i32;
pub type c_ulong = u32;
pub type c_char = u8;

pub(crate) const _ALIGNBYTES: usize = ::mem::size_of::<c_double>() - 1;
pub(crate) const _ALIGNBYTES: usize = crate::mem::size_of::<c_double>() - 1;

pub const _MAX_PAGE_SHIFT: u32 = 12;
Loading