Skip to content

Commit

Permalink
Merge pull request #912 from arnaudgolfouse/final-borrow
Browse files Browse the repository at this point in the history
implementation of final borrows
  • Loading branch information
arnaudgolfouse authored Jan 29, 2024
2 parents 66b0ae4 + 7adfb17 commit 846d296
Show file tree
Hide file tree
Showing 283 changed files with 7,225 additions and 3,936 deletions.
2 changes: 1 addition & 1 deletion creusot-contracts/src/std/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ extern_spec! {
(**self)@.len() > 0 && (^*self)@.len() > 0 &&
(*^self)@ == (**self)@.tail() && (^^self)@ == (^*self)@.tail()
}
None => ^self == * self && (**self)@.len() == 0
None => (*^self)@ == Seq::EMPTY && (^*self)@ == Seq::EMPTY && (**self)@ == Seq::EMPTY && (^^self)@ == Seq::EMPTY
})]
fn take_first_mut<'a>(self_: &mut &'a mut [T]) -> Option<&'a mut T>;

Expand Down
2 changes: 2 additions & 0 deletions creusot/src/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ use rustc_middle::mir::{
mod frozen_locals;
mod init_locals;
mod liveness_no_drop;
mod not_final_places;
mod uninit_locals;

pub use frozen_locals::*;
pub use init_locals::*;
pub use liveness_no_drop::*;
pub use not_final_places::NotFinalPlaces;
pub use uninit_locals::*;

pub struct NeverLive(BitSet<Local>);
Expand Down
Loading

0 comments on commit 846d296

Please sign in to comment.