summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/benches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:19 +0000
commita0b8f38ab54ac451646aa00cd5e91b6c76f22a84 (patch)
treefc451898ccaf445814e26b46664d78702178101d /vendor/rustix/benches
parentAdding debian version 1.71.1+dfsg1-2. (diff)
downloadrustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.tar.xz
rustc-a0b8f38ab54ac451646aa00cd5e91b6c76f22a84.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/rustix/benches')
-rw-r--r--vendor/rustix/benches/mod.rs13
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();
})
});
}