diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:57:31 +0000 |
commit | dc0db358abe19481e475e10c32149b53370f1a1c (patch) | |
tree | ab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/rustix/benches/mod.rs | |
parent | Releasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff) | |
download | rustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip |
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/rustix/benches/mod.rs')
-rw-r--r-- | vendor/rustix/benches/mod.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/vendor/rustix/benches/mod.rs b/vendor/rustix/benches/mod.rs index ee7358cc2..97828d431 100644 --- a/vendor/rustix/benches/mod.rs +++ b/vendor/rustix/benches/mod.rs @@ -18,7 +18,10 @@ target_os = "wasi", ))] fn main() { - unimplemented!("Add --cfg=criterion to RUSTFLAGS and enable the \"fs\", \"time\", and \"process\" cargo features.") + unimplemented!( + "Add --cfg=criterion to RUSTFLAGS and enable the \"fs\", \"time\", and \"process\" cargo \ + features." + ) } #[cfg(not(any( @@ -47,11 +50,11 @@ mod suite { use criterion::Criterion; pub(super) fn simple_statat(c: &mut Criterion) { - use rustix::fs::{cwd, statat, AtFlags}; + use rustix::fs::{statat, AtFlags, CWD}; c.bench_function("simple statat", |b| { b.iter(|| { - statat(cwd(), "/", AtFlags::empty()).unwrap(); + statat(CWD, "/", AtFlags::empty()).unwrap(); }) }); } @@ -95,11 +98,11 @@ mod suite { } pub(super) fn simple_statat_cstr(c: &mut Criterion) { - use rustix::fs::{cwd, statat, AtFlags}; + use rustix::fs::{statat, AtFlags, CWD}; c.bench_function("simple statat cstr", |b| { b.iter(|| { - statat(cwd(), rustix::cstr!("/"), AtFlags::empty()).unwrap(); + statat(CWD, rustix::cstr!("/"), AtFlags::empty()).unwrap(); }) }); } |