Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lean/CoreModels/Alloc/Funs.lean
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ def slice.Dummy.to_vec
:= do
let seq ← rust_primitives.sequence.seq_empty T
let seq1 ← rust_primitives.sequence.seq_extend corecloneCloneInst seq s
ok (seq1, core.Phantom.mk)
ok (seq1, core.marker.PhantomData.mk)

/-- [alloc::slice::{alloc::slice::Dummy<T>}::into_vec]:
Source: 'src/lib.rs', lines 245:8-247:9 -/
def slice.Dummy.into_vec
{T : Type} (A : Type) (s : Slice T) : Result (vec.Vec T A) := do
let s1 ← rust_primitives.sequence.seq_from_boxed_slice s
ok (s1, core.Phantom.mk)
ok (s1, core.marker.PhantomData.mk)

/-- [alloc::vec::from_elem]:
Source: 'src/lib.rs', lines 349:4-354:5 -/
Expand All @@ -131,14 +131,14 @@ def vec.from_elem
Result (vec.Vec T alloc.Global)
:= do
let s ← rust_primitives.sequence.seq_create corecloneCloneInst item len
ok (s, core.Phantom.mk)
ok (s, core.marker.PhantomData.mk)

/-- [alloc::vec::{alloc::vec::Vec<T, alloc::alloc::Global>}::new]:
Source: 'src/lib.rs', lines 358:8-363:9
Visibility: public -/
def vec.VecTGlobal.new (T : Type) : Result (vec.Vec T alloc.Global) := do
let s ← rust_primitives.sequence.seq_empty T
ok (s, core.Phantom.mk)
ok (s, core.marker.PhantomData.mk)

/-- [alloc::vec::{alloc::vec::Vec<T, alloc::alloc::Global>}::with_capacity]:
Source: 'src/lib.rs', lines 364:8-366:9
Expand Down Expand Up @@ -282,7 +282,7 @@ def vec.Vec.drain
let (s, pd) := self
let l ← rust_primitives.sequence.seq_len s
let (s1, s2) ← rust_primitives.sequence.seq_drain s 0#usize l
ok ((s1, core.Phantom.mk), (s2, pd))
ok ((s1, core.marker.PhantomData.mk), (s2, pd))

/-- [alloc::vec::drain::{core::iter::traits::iterator::Iterator<T> for alloc::vec::drain::Drain<T, A>}::next]:
Source: 'src/lib.rs', lines 431:12-438:13
Expand Down
8 changes: 4 additions & 4 deletions lean/CoreModels/Alloc/Types.lean
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def collections.btree.set.BTreeSet (T : Type) (U : Type) :=
Source: 'src/lib.rs', lines 188:8-188:75
Visibility: public -/
def collections.vec_deque.VecDeque (T : Type) (A : Type) :=
rust_primitives.sequence.Seq T × core.Phantom A
rust_primitives.sequence.Seq T × core.marker.PhantomData A

/-- [alloc::slice::Dummy]
Source: 'src/lib.rs', lines 231:4-231:23 -/
Expand All @@ -63,18 +63,18 @@ def slice.Dummy (T : Type) := T
Source: 'src/lib.rs', lines 338:4-338:70
Visibility: public -/
def vec.Vec (T : Type) (A : Type := alloc.Global) :=
rust_primitives.sequence.Seq T × core.Phantom A
rust_primitives.sequence.Seq T × core.marker.PhantomData A

/-- [alloc::vec::into_iter::IntoIter]
Source: 'src/lib.rs', lines 346:8-346:79
Visibility: public -/
def vec.into_iter.IntoIter (T : Type) (A : Type := alloc.Global) :=
rust_primitives.sequence.Seq T × core.Phantom A
rust_primitives.sequence.Seq T × core.marker.PhantomData A

/-- [alloc::vec::drain::Drain]
Source: 'src/lib.rs', lines 428:8-428:76
Visibility: public -/
def vec.drain.Drain (T : Type) (A : Type := alloc.Global) :=
rust_primitives.sequence.Seq T × core.Phantom A
rust_primitives.sequence.Seq T × core.marker.PhantomData A

end CoreModels.alloc
Loading