-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies (rustc nightly-2023-04-01, viper v-2023-03-29-1448)
- Loading branch information
Showing
99 changed files
with
780 additions
and
845 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
#![feature(box_patterns)] | ||
#![feature(box_syntax)] | ||
|
||
fn use_box(v: i32) -> Box<i32> { | ||
let x = Box::new(v); | ||
let y = *x; | ||
assert!(v == y); | ||
let z = Box::new(y); | ||
assert!(v == *z); | ||
let result = box *z; | ||
let result = Box::new(*z); | ||
result | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#![feature(box_patterns)] | ||
#![feature(box_syntax)] | ||
|
||
struct InfiniteList1 { | ||
next: Box<InfiniteList1> | ||
|
18 changes: 8 additions & 10 deletions
18
analysis/tests/test_cases/gen_accessibility/loops/tmp-in-guard.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,51 @@ | ||
#![feature(box_syntax)] | ||
|
||
fn random() -> u32 { | ||
unimplemented!() | ||
} | ||
|
||
fn test1() { | ||
let mut tmp = box box random(); | ||
let mut tmp = Box::new(Box::new(random())); | ||
let tmp_ref = &tmp; | ||
let tmp_ref_mut = &mut tmp; | ||
|
||
while { | ||
let guard = random() < 55; | ||
|
||
let mut tmp = box box random(); | ||
let mut tmp = Box::new(Box::new(random())); | ||
let tmp_ref = &tmp; | ||
let tmp_ref_mut = &mut tmp; | ||
|
||
guard | ||
} { | ||
let mut tmp = box box random(); | ||
let mut tmp = Box::new(Box::new(random())); | ||
let tmp_ref = &tmp; | ||
let tmp_ref_mut = &mut tmp; | ||
} | ||
|
||
let mut tmp = box box random(); | ||
let mut tmp = Box::new(Box::new(random())); | ||
let tmp_ref = &tmp; | ||
let tmp_ref_mut = &mut tmp; | ||
} | ||
|
||
fn test2() { | ||
let mut tmp = box box random(); | ||
let mut tmp = Box::new(Box::new(random())); | ||
let tmp_ref = &tmp; | ||
let tmp_ref_mut = &mut tmp; | ||
|
||
while { | ||
let guard = random() < 55; | ||
|
||
let mut tmp = box box random(); | ||
let mut tmp = Box::new(Box::new(random())); | ||
let tmp_ref = &tmp; | ||
let tmp_ref_mut = &mut tmp; | ||
|
||
guard | ||
} { | ||
let mut tmp = box box random(); | ||
let mut tmp = Box::new(Box::new(random())); | ||
let tmp_ref = &tmp; | ||
let tmp_ref_mut = &mut tmp; | ||
} | ||
|
||
let mut tmp = box box random(); | ||
let mut tmp = Box::new(Box::new(random())); | ||
let tmp_ref = &tmp; | ||
let tmp_ref_mut = &mut tmp; | ||
} |
1 change: 0 additions & 1 deletion
1
analysis/tests/test_cases/gen_accessibility/predicate-old-expr.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#![feature(box_patterns)] | ||
#![feature(box_syntax)] | ||
|
||
use std::borrow::BorrowMut; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
//! Example of reassignment | ||
#![feature(box_patterns)] | ||
#![feature(box_syntax)] | ||
|
||
struct InfiniteList { | ||
val: i32, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.