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

Turn on Type Checker #168

Merged
merged 2 commits into from
Jul 21, 2021
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 .stainless-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
noxt-0.8.1
noxt-0.8.1-1-g3c34688
31 changes: 0 additions & 31 deletions demo/examples/generic_result.rs

This file was deleted.

4 changes: 3 additions & 1 deletion stainless_backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ impl Backend {
.arg("--interactive")
.arg("--batched")
.arg("--vc-cache=false")
.arg("--type-checker=false")
// FIXME: https://github.com/epfl-lara/rust-stainless/issues/86
.arg("--check-measures=false")
.arg("--infer-measures=false")
.arg(format!("--timeout={}", config.timeout))
.arg(format!("--print-ids={}", config.print_ids))
.arg(format!("--print-types={}", config.print_types))
Expand Down
2 changes: 1 addition & 1 deletion stainless_frontend/tests/pass/generic_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub enum Result<T, E> {
}

impl<T, E> Result<T, E> {
#[post(self.is_ok() == ret)]
#[post(matches!(self, Result::Ok(_)) == ret)]
pub fn is_ok(&self) -> bool {
match self {
Result::Ok(_) => true,
Expand Down