Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 755fa9c

Browse files
committedNov 26, 2017
Update tests for -Zborrowck-mir -> -Zborrowck=mode migration
1 parent c9af68e commit 755fa9c

File tree

57 files changed

+194
-320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+194
-320
lines changed
 

‎src/test/compile-fail/E0506.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// revisions: ast mir
12-
//[mir]compile-flags: -Z emit-end-regions -Z borrowck-mir
12+
//[mir]compile-flags: -Z borrowck=mir
1313

1414
struct FancyNum {
1515
num: u8,
@@ -19,8 +19,7 @@ fn main() {
1919
let mut fancy_num = FancyNum { num: 5 };
2020
let fancy_ref = &fancy_num;
2121
fancy_num = FancyNum { num: 6 }; //[ast]~ ERROR E0506
22-
//[mir]~^ ERROR (Mir) [E0506]
23-
//[mir]~| ERROR (Ast) [E0506]
22+
//[mir]~^ ERROR [E0506]
2423

2524
println!("Num: {}, Ref: {}", fancy_num.num, fancy_ref.num);
2625
}

‎src/test/compile-fail/E0508.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
// except according to those terms.
1010

1111
// revisions: ast mir
12-
//[mir]compile-flags: -Zborrowck-mir
12+
//[mir]compile-flags: -Z borrowck=mir
1313

1414
struct NonCopy;
1515

1616
fn main() {
1717
let array = [NonCopy; 1];
18-
let _value = array[0]; //[ast]~ ERROR E0508
19-
//[mir]~^ ERROR (Ast) [E0508]
20-
//[mir]~| ERROR (Mir) [E0508]
18+
let _value = array[0]; //[ast]~ ERROR [E0508]
19+
//[mir]~^ ERROR [E0508]
2120
}

0 commit comments

Comments
 (0)
Please sign in to comment.