Skip to content

Commit fc3ef96

Browse files
committed
Auto merge of #61393 - gnzlbg:update_libc, r=gnzlbg
Update Cargo.lock
2 parents 435236b + 52caca0 commit fc3ef96

File tree

6 files changed

+167
-77
lines changed

6 files changed

+167
-77
lines changed

Cargo.lock

+133-66
Large diffs are not rendered by default.

src/ci/docker/dist-various-1/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ ENV TARGETS=$TARGETS,armv5te-unknown-linux-musleabi
104104
ENV TARGETS=$TARGETS,armv7-unknown-linux-musleabihf
105105
ENV TARGETS=$TARGETS,aarch64-unknown-linux-musl
106106
ENV TARGETS=$TARGETS,sparc64-unknown-linux-gnu
107-
ENV TARGETS=$TARGETS,x86_64-unknown-redox
107+
# FIXME: temporarily disable the redox builder,
108+
# see: https://github.com/rust-lang/rust/issues/63160
109+
# ENV TARGETS=$TARGETS,x86_64-unknown-redox
108110
ENV TARGETS=$TARGETS,thumbv6m-none-eabi
109111
ENV TARGETS=$TARGETS,thumbv7m-none-eabi
110112
ENV TARGETS=$TARGETS,thumbv7em-none-eabi

src/librustc_codegen_llvm/llvm/ffi.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ pub mod debuginfo {
569569
bitflags! {
570570
#[repr(transparent)]
571571
#[derive(Default)]
572-
pub struct DIFlags: ::libc::uint32_t {
572+
pub struct DIFlags: u32 {
573573
const FlagZero = 0;
574574
const FlagPrivate = 1;
575575
const FlagProtected = 2;
@@ -598,7 +598,7 @@ pub mod debuginfo {
598598
bitflags! {
599599
#[repr(transparent)]
600600
#[derive(Default)]
601-
pub struct DISPFlags: ::libc::uint32_t {
601+
pub struct DISPFlags: u32 {
602602
const SPFlagZero = 0;
603603
const SPFlagVirtual = 1;
604604
const SPFlagPureVirtual = 2;

src/libstd/sys/unix/time.rs

+21-4
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,21 @@ mod inner {
137137
t: Timespec::zero(),
138138
};
139139

140+
#[repr(C)]
141+
#[derive(Copy, Clone)]
142+
struct mach_timebase_info {
143+
numer: u32,
144+
denom: u32,
145+
}
146+
type mach_timebase_info_t = *mut mach_timebase_info;
147+
type kern_return_t = libc::c_int;
148+
140149
impl Instant {
141150
pub fn now() -> Instant {
142-
Instant { t: unsafe { libc::mach_absolute_time() } }
151+
extern "C" {
152+
fn mach_absolute_time() -> u64;
153+
}
154+
Instant { t: unsafe { mach_absolute_time() } }
143155
}
144156

145157
pub const fn zero() -> Instant {
@@ -230,8 +242,8 @@ mod inner {
230242
Some(mul_div_u64(nanos, info.denom as u64, info.numer as u64))
231243
}
232244

233-
fn info() -> libc::mach_timebase_info {
234-
static mut INFO: libc::mach_timebase_info = libc::mach_timebase_info {
245+
fn info() -> mach_timebase_info {
246+
static mut INFO: mach_timebase_info = mach_timebase_info {
235247
numer: 0,
236248
denom: 0,
237249
};
@@ -245,7 +257,12 @@ mod inner {
245257

246258
// ... otherwise learn for ourselves ...
247259
let mut info = mem::zeroed();
248-
libc::mach_timebase_info(&mut info);
260+
extern "C" {
261+
fn mach_timebase_info(info: mach_timebase_info_t)
262+
-> kern_return_t;
263+
}
264+
265+
mach_timebase_info(&mut info);
249266

250267
// ... and attempt to be the one thread that stores it globally for
251268
// all other threads

src/test/ui/issues/issue-3656.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
#![feature(rustc_private)]
1313

1414
extern crate libc;
15-
use libc::{c_uint, uint32_t, c_void};
15+
use libc::{c_uint, c_void};
1616

1717
pub struct KEYGEN {
1818
hash_algorithm: [c_uint; 2],
19-
count: uint32_t,
19+
count: u32,
2020
salt: *const c_void,
21-
salt_size: uint32_t,
21+
salt_size: u32,
2222
}
2323

2424
extern {

src/tools/tidy/src/deps.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ const EXCEPTIONS: &[&str] = &[
4848
"bytesize", // Apache-2.0, cargo
4949
"im-rc", // MPL-2.0+, cargo
5050
"adler32", // BSD-3-Clause AND Zlib, cargo dep that isn't used
51-
"fortanix-sgx-abi", // MPL-2.0+, libstd but only for `sgx` target
5251
"constant_time_eq", // CC0-1.0, rustfmt
5352
"utf8parse", // Apache-2.0 OR MIT, cargo via strip-ansi-escapes
5453
"vte", // Apache-2.0 OR MIT, cargo via strip-ansi-escapes
5554
"sized-chunks", // MPL-2.0+, cargo via im-rc
55+
// FIXME: this dependency violates the documentation comment above:
56+
"fortanix-sgx-abi", // MPL-2.0+, libstd but only for `sgx` target
5657
];
5758

5859
/// Which crates to check against the whitelist?
@@ -75,6 +76,7 @@ const WHITELIST: &[Crate<'_>] = &[
7576
Crate("bitflags"),
7677
Crate("build_const"),
7778
Crate("byteorder"),
79+
Crate("c2-chacha"),
7880
Crate("cc"),
7981
Crate("cfg-if"),
8082
Crate("chalk-engine"),
@@ -96,6 +98,7 @@ const WHITELIST: &[Crate<'_>] = &[
9698
Crate("fuchsia-zircon"),
9799
Crate("fuchsia-zircon-sys"),
98100
Crate("getopts"),
101+
Crate("getrandom"),
99102
Crate("humantime"),
100103
Crate("indexmap"),
101104
Crate("itertools"),
@@ -121,6 +124,7 @@ const WHITELIST: &[Crate<'_>] = &[
121124
Crate("parking_lot_core"),
122125
Crate("pkg-config"),
123126
Crate("polonius-engine"),
127+
Crate("ppv-lite86"),
124128
Crate("proc-macro2"),
125129
Crate("quick-error"),
126130
Crate("quote"),

0 commit comments

Comments
 (0)