Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final borrow #912

Merged
merged 17 commits into from
Jan 29, 2024
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
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
Loading