Skip to content

Commit 6a81591

Browse files
ranjitjhalanilehmann
authored andcommitted
update PR to work with latest flux
1 parent cca61b5 commit 6a81591

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

library/core/src/flux_info.rs

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
//! This file contains auxiliary definitions for Flux
22
3+
4+
use crate::hash;
5+
use crate::time;
6+
7+
38
/// List of properties tracked for the result of primitive bitwise operations.
49
/// See the following link for more information on how extensible properties for primitive operations work:
510
/// <https://flux-rs.github.io/flux/guide/specifications.html#extensible-properties-for-primitive-ops>
@@ -65,26 +70,28 @@
6570
ntail: usize{v: v <= 8}, // how many bytes in tail are valid
6671
_marker: PhantomData<S>,
6772
}
73+
74+
impl hash::Hasher for Hasher {
75+
fn write(self: &mut Self, msg: &[u8]) ensures self: Self; // mut-ref-unfolding
76+
}
6877
}
6978
7079
impl BuildHasherDefault {
7180
#[trusted(reason="https://github.com/flux-rs/flux/issues/1185")]
7281
fn new() -> Self;
7382
}
74-
}
7583
76-
impl Hasher for hash::sip::Hasher {
77-
fn write(self: &mut Self, msg: &[u8]) ensures self: Self; // mut-ref-unfolding
78-
}
79-
80-
impl Clone for hash::BuildHasherDefault {
81-
#[trusted(reason="https://github.com/flux-rs/flux/issues/1185")]
82-
fn clone(self: &Self) -> Self;
84+
impl clone::Clone for BuildHasherDefault {
85+
#[trusted(reason="https://github.com/flux-rs/flux/issues/1185")]
86+
fn clone(self: &Self) -> Self;
87+
}
8388
}
8489
85-
impl Debug for time::Duration {
86-
#[trusted(reason="modular arithmetic invariant inside nested fmt_decimal")]
87-
fn fmt(self: &Self, f: &mut fmt::Formatter) -> fmt::Result;
90+
mod time {
91+
impl fmt::Debug for Duration {
92+
#[trusted(reason="modular arithmetic invariant inside nested fmt_decimal")]
93+
fn fmt(self: &Self, f: &mut fmt::Formatter) -> fmt::Result;
94+
}
8895
}
8996
}]
9097
const _: () = {};

0 commit comments

Comments
 (0)