diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-14 11:39:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-14 11:39:36 +0200 |
| commit | c1f9e2ab509dc8f03bf56ab9b9f109c467d3abb6 (patch) | |
| tree | 9c36b53d3fab3bfa016734a8bb03a097602d72d3 /src | |
| parent | 7d91d20df14078ee4c9ba3cc206512613c32e94c (diff) | |
| parent | c503487a6f1402ed37051e435af0c410a3815b14 (diff) | |
| download | rust-c1f9e2ab509dc8f03bf56ab9b9f109c467d3abb6.tar.gz rust-c1f9e2ab509dc8f03bf56ab9b9f109c467d3abb6.zip | |
Rollup merge of #145179 - joshtriplett:number, r=RalfJung
Avoid abbreviating "numerator" as "numer", to allow catching typo "numer" elsewhere `typos.toml` has an exception for "numer", to avoid flagging its use as an abbreviation for "numerator". Remove the use of that abbrevation, spelling out "numerator" instead, and remove the exception, so that typo checks can find future instances of "numer" as a typo for "number".
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/miri/src/shims/time.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/miri/src/shims/time.rs b/src/tools/miri/src/shims/time.rs index b5b35797fec..6e56fdfe35a 100644 --- a/src/tools/miri/src/shims/time.rs +++ b/src/tools/miri/src/shims/time.rs @@ -322,8 +322,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> { // Since our emulated ticks in `mach_absolute_time` *are* nanoseconds, // no scaling needs to happen. - let (numer, denom) = (1, 1); - this.write_int_fields(&[numer.into(), denom.into()], &info)?; + let (numerator, denom) = (1, 1); + this.write_int_fields(&[numerator.into(), denom.into()], &info)?; interp_ok(Scalar::from_i32(0)) // KERN_SUCCESS } |
