Skip to content

Commit 2af199d

Browse files
committed
Update E0714 to E0716 in tests output
1 parent ea4d934 commit 2af199d

34 files changed

+97
-97
lines changed

src/test/ui/consts/const-eval/union_promotion.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/union_promotion.rs:19:29
33
|
44
LL | let x: &'static bool = &unsafe { //~ borrowed value does not live long enough
@@ -13,4 +13,4 @@ LL | }
1313

1414
error: aborting due to previous error
1515

16-
For more information about this error, try `rustc --explain E0714`.
16+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/consts/const-int-conversion.nll.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/const-int-conversion.rs:14:28
33
|
44
LL | let x: &'static i32 = &(5_i32.reverse_bits());
@@ -9,7 +9,7 @@ LL | }
99
|
1010
= note: borrowed value must be valid for the static lifetime...
1111

12-
error[E0714]: temporary value dropped while borrowed
12+
error[E0716]: temporary value dropped while borrowed
1313
--> $DIR/const-int-conversion.rs:16:28
1414
|
1515
LL | let y: &'static i32 = &(i32::from_be_bytes([0x12, 0x34, 0x56, 0x78]));
@@ -20,7 +20,7 @@ LL | }
2020
|
2121
= note: borrowed value must be valid for the static lifetime...
2222

23-
error[E0714]: temporary value dropped while borrowed
23+
error[E0716]: temporary value dropped while borrowed
2424
--> $DIR/const-int-conversion.rs:18:28
2525
|
2626
LL | let z: &'static i32 = &(i32::from_le_bytes([0x12, 0x34, 0x56, 0x78]));
@@ -31,7 +31,7 @@ LL | }
3131
|
3232
= note: borrowed value must be valid for the static lifetime...
3333

34-
error[E0714]: temporary value dropped while borrowed
34+
error[E0716]: temporary value dropped while borrowed
3535
--> $DIR/const-int-conversion.rs:20:28
3636
|
3737
LL | let a: &'static i32 = &(i32::from_be(i32::from_ne_bytes([0x80, 0, 0, 0])));
@@ -42,7 +42,7 @@ LL | }
4242
|
4343
= note: borrowed value must be valid for the static lifetime...
4444

45-
error[E0714]: temporary value dropped while borrowed
45+
error[E0716]: temporary value dropped while borrowed
4646
--> $DIR/const-int-conversion.rs:22:29
4747
|
4848
LL | let b: &'static [u8] = &(0x12_34_56_78_i32.to_be_bytes());
@@ -53,7 +53,7 @@ LL | }
5353
|
5454
= note: borrowed value must be valid for the static lifetime...
5555

56-
error[E0714]: temporary value dropped while borrowed
56+
error[E0716]: temporary value dropped while borrowed
5757
--> $DIR/const-int-conversion.rs:24:29
5858
|
5959
LL | let c: &'static [u8] = &(0x12_34_56_78_i32.to_le_bytes());
@@ -64,7 +64,7 @@ LL | }
6464
|
6565
= note: borrowed value must be valid for the static lifetime...
6666

67-
error[E0714]: temporary value dropped while borrowed
67+
error[E0716]: temporary value dropped while borrowed
6868
--> $DIR/const-int-conversion.rs:26:29
6969
|
7070
LL | let d: &'static [u8] = &(i32::min_value().to_be().to_ne_bytes());
@@ -77,4 +77,4 @@ LL | }
7777

7878
error: aborting due to 7 previous errors
7979

80-
For more information about this error, try `rustc --explain E0714`.
80+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/consts/const-int-overflowing.nll.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/const-int-overflowing.rs:12:36
33
|
44
LL | let x: &'static (i32, bool) = &(5_i32.overflowing_add(3)); //~ ERROR does not live long enough
@@ -9,7 +9,7 @@ LL | }
99
|
1010
= note: borrowed value must be valid for the static lifetime...
1111

12-
error[E0714]: temporary value dropped while borrowed
12+
error[E0716]: temporary value dropped while borrowed
1313
--> $DIR/const-int-overflowing.rs:13:36
1414
|
1515
LL | let y: &'static (i32, bool) = &(5_i32.overflowing_sub(3)); //~ ERROR does not live long enough
@@ -20,7 +20,7 @@ LL | }
2020
|
2121
= note: borrowed value must be valid for the static lifetime...
2222

23-
error[E0714]: temporary value dropped while borrowed
23+
error[E0716]: temporary value dropped while borrowed
2424
--> $DIR/const-int-overflowing.rs:14:36
2525
|
2626
LL | let z: &'static (i32, bool) = &(5_i32.overflowing_mul(3)); //~ ERROR does not live long enough
@@ -32,4 +32,4 @@ LL | }
3232

3333
error: aborting due to 3 previous errors
3434

35-
For more information about this error, try `rustc --explain E0714`.
35+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/consts/const-int-rotate.nll.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/const-int-rotate.rs:12:28
33
|
44
LL | let x: &'static i32 = &(5_i32.rotate_left(3)); //~ ERROR does not live long enough
@@ -9,7 +9,7 @@ LL | }
99
|
1010
= note: borrowed value must be valid for the static lifetime...
1111

12-
error[E0714]: temporary value dropped while borrowed
12+
error[E0716]: temporary value dropped while borrowed
1313
--> $DIR/const-int-rotate.rs:13:28
1414
|
1515
LL | let y: &'static i32 = &(5_i32.rotate_right(3)); //~ ERROR does not live long enough
@@ -21,4 +21,4 @@ LL | }
2121

2222
error: aborting due to 2 previous errors
2323

24-
For more information about this error, try `rustc --explain E0714`.
24+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/consts/const-int-sign.nll.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/const-int-sign.rs:12:29
33
|
44
LL | let x: &'static bool = &(5_i32.is_negative()); //~ ERROR does not live long enough
@@ -9,7 +9,7 @@ LL | }
99
|
1010
= note: borrowed value must be valid for the static lifetime...
1111

12-
error[E0714]: temporary value dropped while borrowed
12+
error[E0716]: temporary value dropped while borrowed
1313
--> $DIR/const-int-sign.rs:13:29
1414
|
1515
LL | let y: &'static bool = &(5_i32.is_positive()); //~ ERROR does not live long enough
@@ -21,4 +21,4 @@ LL | }
2121

2222
error: aborting due to 2 previous errors
2323

24-
For more information about this error, try `rustc --explain E0714`.
24+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/consts/const-int-wrapping.nll.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/const-int-wrapping.rs:12:28
33
|
44
LL | let x: &'static i32 = &(5_i32.wrapping_add(3)); //~ ERROR does not live long enough
@@ -9,7 +9,7 @@ LL | }
99
|
1010
= note: borrowed value must be valid for the static lifetime...
1111

12-
error[E0714]: temporary value dropped while borrowed
12+
error[E0716]: temporary value dropped while borrowed
1313
--> $DIR/const-int-wrapping.rs:13:28
1414
|
1515
LL | let y: &'static i32 = &(5_i32.wrapping_sub(3)); //~ ERROR does not live long enough
@@ -20,7 +20,7 @@ LL | }
2020
|
2121
= note: borrowed value must be valid for the static lifetime...
2222

23-
error[E0714]: temporary value dropped while borrowed
23+
error[E0716]: temporary value dropped while borrowed
2424
--> $DIR/const-int-wrapping.rs:14:28
2525
|
2626
LL | let z: &'static i32 = &(5_i32.wrapping_mul(3)); //~ ERROR does not live long enough
@@ -31,7 +31,7 @@ LL | }
3131
|
3232
= note: borrowed value must be valid for the static lifetime...
3333

34-
error[E0714]: temporary value dropped while borrowed
34+
error[E0716]: temporary value dropped while borrowed
3535
--> $DIR/const-int-wrapping.rs:15:28
3636
|
3737
LL | let a: &'static i32 = &(5_i32.wrapping_shl(3)); //~ ERROR does not live long enough
@@ -42,7 +42,7 @@ LL | }
4242
|
4343
= note: borrowed value must be valid for the static lifetime...
4444

45-
error[E0714]: temporary value dropped while borrowed
45+
error[E0716]: temporary value dropped while borrowed
4646
--> $DIR/const-int-wrapping.rs:16:28
4747
|
4848
LL | let b: &'static i32 = &(5_i32.wrapping_shr(3)); //~ ERROR does not live long enough
@@ -54,4 +54,4 @@ LL | }
5454

5555
error: aborting due to 5 previous errors
5656

57-
For more information about this error, try `rustc --explain E0714`.
57+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/consts/min_const_fn/min_const_fn.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ error: trait bounds other than `Sized` on const fn parameters are unstable
190190
LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
191191
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
192192

193-
error[E0714]: temporary value dropped while borrowed
193+
error[E0716]: temporary value dropped while borrowed
194194
--> $DIR/min_const_fn.rs:144:64
195195
|
196196
LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
@@ -220,5 +220,5 @@ LL | const fn no_fn_ptrs2() -> fn() { fn foo() {} foo }
220220

221221
error: aborting due to 36 previous errors
222222

223-
Some errors occurred: E0493, E0714.
223+
Some errors occurred: E0493, E0716.
224224
For more information about an error, try `rustc --explain E0493`.

src/test/ui/consts/min_const_fn/min_const_fn_dyn.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ error: trait bounds other than `Sized` on const fn parameters are unstable
1010
LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
1111
| ^^
1212

13-
error[E0714]: temporary value dropped while borrowed
13+
error[E0716]: temporary value dropped while borrowed
1414
--> $DIR/min_const_fn_dyn.rs:24:67
1515
|
1616
LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
@@ -22,4 +22,4 @@ LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
2222

2323
error: aborting due to 3 previous errors
2424

25-
For more information about this error, try `rustc --explain E0714`.
25+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/issues/issue-11681.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/issue-11681.rs:22:20
33
|
44
LL | let testValue = &Test; //~ ERROR borrowed value does not live long enough
@@ -15,4 +15,4 @@ LL | fn createTest<'a>() -> &'a Test {
1515

1616
error: aborting due to previous error
1717

18-
For more information about this error, try `rustc --explain E0714`.
18+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/issues/issue-17545.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/issue-17545.rs:17:10
33
|
44
LL | &id(()), //~ ERROR borrowed value does not live long enough
@@ -14,4 +14,4 @@ LL | pub fn foo<'a, F: Fn(&'a ())>(bar: F) {
1414

1515
error: aborting due to previous error
1616

17-
For more information about this error, try `rustc --explain E0714`.
17+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/issues/issue-17718-constants-not-static.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/issue-17718-constants-not-static.rs:15:31
33
|
44
LL | fn foo() -> &'static usize { &id(FOO) }
@@ -10,4 +10,4 @@ LL | fn foo() -> &'static usize { &id(FOO) }
1010

1111
error: aborting due to previous error
1212

13-
For more information about this error, try `rustc --explain E0714`.
13+
For more information about this error, try `rustc --explain E0716`.
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/issue-27592.rs:26:27
33
|
44
LL | write(|| format_args!("{}", String::from("Hello world")));
55
| ^^^^ - temporary value is freed at the end of this statement
66
| |
77
| creates a temporary which is freed while still in use
88

9-
error[E0714]: temporary value dropped while borrowed
9+
error[E0716]: temporary value dropped while borrowed
1010
--> $DIR/issue-27592.rs:26:33
1111
|
1212
LL | write(|| format_args!("{}", String::from("Hello world")));
@@ -16,4 +16,4 @@ LL | write(|| format_args!("{}", String::from("Hello world")));
1616

1717
error: aborting due to 2 previous errors
1818

19-
For more information about this error, try `rustc --explain E0714`.
19+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/issues/issue-30438-a.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/issue-30438-a.rs:22:17
33
|
44
LL | return &Test { s: &self.s};
@@ -17,4 +17,4 @@ LL | | }
1717

1818
error: aborting due to previous error
1919

20-
For more information about this error, try `rustc --explain E0714`.
20+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/issues/issue-30438-b.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/issue-30438-b.rs:23:10
33
|
44
LL | &Test { s: &self.s}
@@ -18,4 +18,4 @@ LL | | }
1818

1919
error: aborting due to previous error
2020

21-
For more information about this error, try `rustc --explain E0714`.
21+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/issues/issue-36082.ast.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/issue-36082.rs:23:19
33
|
44
LL | let val: &_ = x.borrow().0;
@@ -13,4 +13,4 @@ LL | println!("{}", val);
1313

1414
error: aborting due to previous error
1515

16-
For more information about this error, try `rustc --explain E0714`.
16+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/issues/issue-44373.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/issue-44373.rs:15:42
33
|
44
LL | let _val: &'static [&'static u32] = &[&FOO]; //~ ERROR borrowed value does not live long enough
@@ -10,4 +10,4 @@ LL | }
1010

1111
error: aborting due to previous error
1212

13-
For more information about this error, try `rustc --explain E0714`.
13+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/issues/issue-52049.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/issue-52049.rs:16:10
33
|
44
LL | foo(&unpromotable(5u32));
@@ -10,4 +10,4 @@ LL | }
1010

1111
error: aborting due to previous error
1212

13-
For more information about this error, try `rustc --explain E0714`.
13+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/lifetimes/borrowck-let-suggestion.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/borrowck-let-suggestion.rs:12:17
33
|
44
LL | let mut x = vec![1].iter();
@@ -14,4 +14,4 @@ LL | x.use_mut();
1414

1515
error: aborting due to previous error
1616

17-
For more information about this error, try `rustc --explain E0714`.
17+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/regions/regions-creating-enums.nll.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/regions-creating-enums.rs:33:17
33
|
44
LL | return &ast::num((*f)(x)); //~ ERROR borrowed value does not live long enough
@@ -12,7 +12,7 @@ note: borrowed value must be valid for the lifetime 'a as defined on the functio
1212
LL | fn map_nums<'a,'b, F>(x: &ast, f: &mut F) -> &'a ast<'b> where F: FnMut(usize) -> usize {
1313
| ^^
1414

15-
error[E0714]: temporary value dropped while borrowed
15+
error[E0716]: temporary value dropped while borrowed
1616
--> $DIR/regions-creating-enums.rs:38:17
1717
|
1818
LL | return &ast::add(m_x, m_y); //~ ERROR borrowed value does not live long enough
@@ -28,4 +28,4 @@ LL | fn map_nums<'a,'b, F>(x: &ast, f: &mut F) -> &'a ast<'b> where F: FnMut(usi
2828

2929
error: aborting due to 2 previous errors
3030

31-
For more information about this error, try `rustc --explain E0714`.
31+
For more information about this error, try `rustc --explain E0716`.

src/test/ui/regions/regions-free-region-ordering-caller1.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0714]: temporary value dropped while borrowed
1+
error[E0716]: temporary value dropped while borrowed
22
--> $DIR/regions-free-region-ordering-caller1.rs:19:27
33
|
44
LL | let z: &'a & usize = &(&y);
@@ -15,4 +15,4 @@ LL | fn call1<'a>(x: &'a usize) {
1515

1616
error: aborting due to previous error
1717

18-
For more information about this error, try `rustc --explain E0714`.
18+
For more information about this error, try `rustc --explain E0716`.

0 commit comments

Comments
 (0)