Skip to content

Commit 78ed126

Browse files
committed
even --bless causes bug
1 parent ed75851 commit 78ed126

34 files changed

+56
-56
lines changed

tests/ui/array-slice-vec/slice-mut-2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
22
--> $DIR/slice-mut-2.rs:7:18
33
|
44
LL | let _ = &mut x[2..4];

tests/ui/borrowck/borrow-immutable-upvar-mutation.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | let _f = to_fn(|| x = 42);
1010
| | in this closure
1111
| expects `Fn` instead of `FnMut`
1212

13-
error[E0596]: cannot borrow `y` as mutable, as it is a captured variable in a `Fn` closure
13+
error[E0596]: cannot borrow y as mutable, as it is a captured variable in a `Fn` closure
1414
--> $DIR/borrow-immutable-upvar-mutation.rs:24:31
1515
|
1616
LL | fn to_fn<A: std::marker::Tuple, F: Fn<A>>(f: F) -> F {
@@ -46,7 +46,7 @@ LL | let _f = to_fn(move || x = 42);
4646
| | in this closure
4747
| expects `Fn` instead of `FnMut`
4848

49-
error[E0596]: cannot borrow `y` as mutable, as it is a captured variable in a `Fn` closure
49+
error[E0596]: cannot borrow y as mutable, as it is a captured variable in a `Fn` closure
5050
--> $DIR/borrow-immutable-upvar-mutation.rs:39:36
5151
|
5252
LL | fn to_fn<A: std::marker::Tuple, F: Fn<A>>(f: F) -> F {

tests/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
22
--> $DIR/borrow-raw-address-of-deref-mutability.rs:8:13
33
|
44
LL | let q = &raw mut *x;

tests/ui/borrowck/borrow-raw-address-of-mutability.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ help: consider changing this to be mutable
3232
LL | let mut f = || {
3333
| +++
3434

35-
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
35+
error[E0596]: cannot borrow x as mutable, as it is a captured variable in a `Fn` closure
3636
--> $DIR/borrow-raw-address-of-mutability.rs:29:17
3737
|
3838
LL | fn make_fn<F: Fn()>(f: F) -> F { f }
@@ -45,7 +45,7 @@ LL | let f = make_fn(|| {
4545
LL | let y = &raw mut x;
4646
| ^^^^^^^^^^ cannot borrow as mutable
4747

48-
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
48+
error[E0596]: cannot borrow x as mutable, as it is a captured variable in a `Fn` closure
4949
--> $DIR/borrow-raw-address-of-mutability.rs:37:17
5050
|
5151
LL | fn make_fn<F: Fn()>(f: F) -> F { f }

tests/ui/borrowck/borrowck-access-permissions.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ help: consider changing this to be mutable
2626
LL | let mut box_x = Box::new(1);
2727
| +++
2828

29-
error[E0596]: cannot borrow `*ref_x` as mutable, as it is behind a `&` reference
29+
error[E0596]: cannot borrow *ref_x as mutable, as it is behind a `&` reference
3030
--> $DIR/borrowck-access-permissions.rs:30:19
3131
|
3232
LL | let _y1 = &mut *ref_x;
@@ -48,7 +48,7 @@ help: consider changing this to be a mutable pointer
4848
LL | let ptr_x : *const _ = &mut x;
4949
| +++
5050

51-
error[E0596]: cannot borrow `*foo_ref.f` as mutable, as it is behind a `&` reference
51+
error[E0596]: cannot borrow *foo_ref.f as mutable, as it is behind a `&` reference
5252
--> $DIR/borrowck-access-permissions.rs:48:18
5353
|
5454
LL | let _y = &mut *foo_ref.f;

tests/ui/borrowck/borrowck-borrow-mut-base-ptr-in-aliasable-loc.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LL | let p: &isize = &**t0;
1919
LL | **t1 = 22;
2020
| --------- mutable borrow later used here
2121

22-
error[E0596]: cannot borrow `**t0` as mutable, as it is behind a `&` reference
22+
error[E0596]: cannot borrow **t0 as mutable, as it is behind a `&` reference
2323
--> $DIR/borrowck-borrow-mut-base-ptr-in-aliasable-loc.rs:19:26
2424
|
2525
LL | let x: &mut isize = &mut **t0;

tests/ui/borrowck/borrowck-closures-mut-of-imm.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
22
--> $DIR/borrowck-closures-mut-of-imm.rs:9:25
33
|
44
LL | let mut c1 = || set(&mut *x);
55
| ^^^^^^^ cannot borrow as mutable
66

7-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
7+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
88
--> $DIR/borrowck-closures-mut-of-imm.rs:11:25
99
|
1010
LL | let mut c2 = || set(&mut *x);

tests/ui/borrowck/borrowck-reborrow-from-mut.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ LL | let _foo2 = &mut *foo;
102102
LL | use_imm(_bar1);
103103
| ----- immutable borrow later used here
104104

105-
error[E0596]: cannot borrow `foo.bar1` as mutable, as it is behind a `&` reference
105+
error[E0596]: cannot borrow foo.bar1 as mutable, as it is behind a `&` reference
106106
--> $DIR/borrowck-reborrow-from-mut.rs:88:17
107107
|
108108
LL | let _bar1 = &mut foo.bar1;

tests/ui/borrowck/issue-115259-suggest-iter-mut.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `**layer` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow **layer as mutable, as it is behind a `&` reference
22
--> $DIR/issue-115259-suggest-iter-mut.rs:15:65
33
|
44
LL | self.layers.iter().fold(0, |result, mut layer| result + layer.process())

tests/ui/borrowck/issue-62387-suggest-iter-mut-2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*container` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *container as mutable, as it is behind a `&` reference
22
--> $DIR/issue-62387-suggest-iter-mut-2.rs:30:45
33
|
44
LL | vec.iter().flat_map(|container| container.things()).cloned().collect::<Vec<PathBuf>>();

0 commit comments

Comments
 (0)