]> git.lizzy.rs Git - rust.git/commitdiff
Update E0714 to E0716 in tests output
authorMikhail Modin <mikhailm1@gmail.com>
Tue, 25 Sep 2018 15:24:20 +0000 (16:24 +0100)
committerMikhail Modin <mikhailm1@gmail.com>
Tue, 25 Sep 2018 15:24:20 +0000 (16:24 +0100)
34 files changed:
src/test/ui/consts/const-eval/union_promotion.nll.stderr
src/test/ui/consts/const-int-conversion.nll.stderr
src/test/ui/consts/const-int-overflowing.nll.stderr
src/test/ui/consts/const-int-rotate.nll.stderr
src/test/ui/consts/const-int-sign.nll.stderr
src/test/ui/consts/const-int-wrapping.nll.stderr
src/test/ui/consts/min_const_fn/min_const_fn.nll.stderr
src/test/ui/consts/min_const_fn/min_const_fn_dyn.nll.stderr
src/test/ui/issues/issue-11681.nll.stderr
src/test/ui/issues/issue-17545.nll.stderr
src/test/ui/issues/issue-17718-constants-not-static.nll.stderr
src/test/ui/issues/issue-27592.nll.stderr
src/test/ui/issues/issue-30438-a.nll.stderr
src/test/ui/issues/issue-30438-b.nll.stderr
src/test/ui/issues/issue-36082.ast.nll.stderr
src/test/ui/issues/issue-44373.nll.stderr
src/test/ui/issues/issue-52049.nll.stderr
src/test/ui/lifetimes/borrowck-let-suggestion.nll.stderr
src/test/ui/regions/regions-creating-enums.nll.stderr
src/test/ui/regions/regions-free-region-ordering-caller1.nll.stderr
src/test/ui/regions/regions-lifetime-of-struct-or-enum-variant.nll.stderr
src/test/ui/regions/regions-ref-in-fn-arg.nll.stderr
src/test/ui/regions/regions-ret.nll.stderr
src/test/ui/regions/regions-return-stack-allocated-vec.nll.stderr
src/test/ui/regions/regions-var-type-out-of-scope.nll.stderr
src/test/ui/span/borrowck-let-suggestion-suffixes.nll.stderr
src/test/ui/span/borrowck-ref-into-rvalue.nll.stderr
src/test/ui/span/issue-15480.nll.stderr
src/test/ui/span/regions-close-over-borrowed-ref-in-obj.nll.stderr
src/test/ui/span/slice-borrow.nll.stderr
src/test/ui/static/static-drop-scope.nll.stderr
src/test/ui/static/static-reference-to-fn-2.nll.stderr
src/test/ui/static/static-region-bound.nll.stderr
src/test/ui/wf/wf-misc-methods-issue-28609.nll.stderr

index 9437cacd7734cd8a50f5adb82dd1145e57415509..afc5c462c4633948f8df7c3b9f6324e36da6159c 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/union_promotion.rs:19:29
    |
 LL |       let x: &'static bool = &unsafe { //~ borrowed value does not live long enough
@@ -13,4 +13,4 @@ LL |   }
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 922905477f380f08d1ecc5e14718184e2dc018cd..8fe6816f0b21a18f7731f8c8957741e4143aad45 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-conversion.rs:14:28
    |
 LL |     let x: &'static i32 = &(5_i32.reverse_bits());
@@ -9,7 +9,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-conversion.rs:16:28
    |
 LL |     let y: &'static i32 = &(i32::from_be_bytes([0x12, 0x34, 0x56, 0x78]));
@@ -20,7 +20,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-conversion.rs:18:28
    |
 LL |     let z: &'static i32 = &(i32::from_le_bytes([0x12, 0x34, 0x56, 0x78]));
@@ -31,7 +31,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-conversion.rs:20:28
    |
 LL |     let a: &'static i32 = &(i32::from_be(i32::from_ne_bytes([0x80, 0, 0, 0])));
@@ -42,7 +42,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-conversion.rs:22:29
    |
 LL |     let b: &'static [u8] = &(0x12_34_56_78_i32.to_be_bytes());
@@ -53,7 +53,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-conversion.rs:24:29
    |
 LL |     let c: &'static [u8] = &(0x12_34_56_78_i32.to_le_bytes());
@@ -64,7 +64,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-conversion.rs:26:29
    |
 LL |     let d: &'static [u8] = &(i32::min_value().to_be().to_ne_bytes());
@@ -77,4 +77,4 @@ LL | }
 
 error: aborting due to 7 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index fd420658c7ad4a7e956c2a5de7de255628e80f14..3f4a7562ce9b011c45328bc8d8b8d7e9ac55e0e4 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-overflowing.rs:12:36
    |
 LL |     let x: &'static (i32, bool) = &(5_i32.overflowing_add(3)); //~ ERROR does not live long enough
@@ -9,7 +9,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-overflowing.rs:13:36
    |
 LL |     let y: &'static (i32, bool) = &(5_i32.overflowing_sub(3)); //~ ERROR does not live long enough
@@ -20,7 +20,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-overflowing.rs:14:36
    |
 LL |     let z: &'static (i32, bool) = &(5_i32.overflowing_mul(3)); //~ ERROR does not live long enough
@@ -32,4 +32,4 @@ LL | }
 
 error: aborting due to 3 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index d66017a289bca8af4c0562dd533744cd065343bb..8a0c49a6d845138776ad491787dd773dae465374 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-rotate.rs:12:28
    |
 LL |     let x: &'static i32 = &(5_i32.rotate_left(3)); //~ ERROR does not live long enough
@@ -9,7 +9,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-rotate.rs:13:28
    |
 LL |     let y: &'static i32 = &(5_i32.rotate_right(3)); //~ ERROR does not live long enough
@@ -21,4 +21,4 @@ LL | }
 
 error: aborting due to 2 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 62a2b111ed9c3a7a8e594efbf7aade18c0ccd34a..53bcba8c77e542daa1a49395ec2b4d965184b326 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-sign.rs:12:29
    |
 LL |     let x: &'static bool = &(5_i32.is_negative()); //~ ERROR does not live long enough
@@ -9,7 +9,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-sign.rs:13:29
    |
 LL |     let y: &'static bool = &(5_i32.is_positive()); //~ ERROR does not live long enough
@@ -21,4 +21,4 @@ LL | }
 
 error: aborting due to 2 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 4c6c98188dccb2651e7afc4d615109ec674b66ea..3fd83090a4df5390b65e9da6923f6dd695c02387 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-wrapping.rs:12:28
    |
 LL |     let x: &'static i32 = &(5_i32.wrapping_add(3)); //~ ERROR does not live long enough
@@ -9,7 +9,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-wrapping.rs:13:28
    |
 LL |     let y: &'static i32 = &(5_i32.wrapping_sub(3)); //~ ERROR does not live long enough
@@ -20,7 +20,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-wrapping.rs:14:28
    |
 LL |     let z: &'static i32 = &(5_i32.wrapping_mul(3)); //~ ERROR does not live long enough
@@ -31,7 +31,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-wrapping.rs:15:28
    |
 LL |     let a: &'static i32 = &(5_i32.wrapping_shl(3)); //~ ERROR does not live long enough
@@ -42,7 +42,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/const-int-wrapping.rs:16:28
    |
 LL |     let b: &'static i32 = &(5_i32.wrapping_shr(3)); //~ ERROR does not live long enough
@@ -54,4 +54,4 @@ LL | }
 
 error: aborting due to 5 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index d79fd6571192ee4d519c3f167e04248a226b4777..715884d5175124582d54dd962af92cc1eeed71a0 100644 (file)
@@ -190,7 +190,7 @@ error: trait bounds other than `Sized` on const fn parameters are unstable
 LL | const fn no_dyn_trait_ret() -> &'static dyn std::fmt::Debug { &() }
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/min_const_fn.rs:144:64
    |
 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 }
 
 error: aborting due to 36 previous errors
 
-Some errors occurred: E0493, E0714.
+Some errors occurred: E0493, E0716.
 For more information about an error, try `rustc --explain E0493`.
index 8d8fe7cfbebf6f0f1a16b49bdad5e277268481d5..9fc38e9e1f36e2701dcf5aa2d6e583e00dc7e961 100644 (file)
@@ -10,7 +10,7 @@ error: trait bounds other than `Sized` on const fn parameters are unstable
 LL | const fn no_inner_dyn_trait_ret() -> Hide { Hide(HasDyn { field: &0 }) }
    |                                                                  ^^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/min_const_fn_dyn.rs:24:67
    |
 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 }) }
 
 error: aborting due to 3 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 8ded4f6e76879d14aab01d013087589f49f89c32..f818f5b6195f356196e12e482efc5faa63aa9a5d 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/issue-11681.rs:22:20
    |
 LL |   let testValue = &Test; //~ ERROR borrowed value does not live long enough
@@ -15,4 +15,4 @@ LL | fn createTest<'a>() -> &'a Test {
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 3f9fa694c349e7cd2c10e8b8ab9f6c46b2015f70..889bfa07ab9be6ffec86bf99f4e00ffebce78930 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/issue-17545.rs:17:10
    |
 LL |         &id(()), //~ ERROR borrowed value does not live long enough
@@ -14,4 +14,4 @@ LL | pub fn foo<'a, F: Fn(&'a ())>(bar: F) {
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index c0795acbbb9d0a6fd84840b787c03295fb842737..03fc31b7a7b54819c5f3de08bf844d4b622b6121 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/issue-17718-constants-not-static.rs:15:31
    |
 LL | fn foo() -> &'static usize { &id(FOO) }
@@ -10,4 +10,4 @@ LL | fn foo() -> &'static usize { &id(FOO) }
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index a41b3f8201893c3241c919d889dfd079016f3d08..a1d8c7aeb0eb9c143a1b69dadb3e8e4c6a924846 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/issue-27592.rs:26:27
    |
 LL |     write(|| format_args!("{}", String::from("Hello world")));
@@ -6,7 +6,7 @@ LL |     write(|| format_args!("{}", String::from("Hello world")));
    |                           |
    |                           creates a temporary which is freed while still in use
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/issue-27592.rs:26:33
    |
 LL |     write(|| format_args!("{}", String::from("Hello world")));
@@ -16,4 +16,4 @@ LL |     write(|| format_args!("{}", String::from("Hello world")));
 
 error: aborting due to 2 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 9acaaaa274709ad08199aecca70595beaa14aa1f..7a11743fe462136751af36981d49acb0746e2164 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/issue-30438-a.rs:22:17
    |
 LL |         return &Test { s: &self.s};
@@ -17,4 +17,4 @@ LL | |     }
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 02344c50a38ad90778f2f62a6de4f83b54641d0e..ae1022f593ed55a8a6ebc8fb4bfb67c7c58e6490 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/issue-30438-b.rs:23:10
    |
 LL |         &Test { s: &self.s}
@@ -18,4 +18,4 @@ LL | |     }
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 4a481da6522cea75cfca92a3373efd95a66a05c9..7fa7cee0aec1eeec5452827ab8fe64cd28be373e 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/issue-36082.rs:23:19
    |
 LL |     let val: &_ = x.borrow().0;
@@ -13,4 +13,4 @@ LL |     println!("{}", val);
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 9a6c59aaa20d6c326d4a830313e5d1b0c1fc086b..dadd58cf4805db8470b229540182107a8d58ee38 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/issue-44373.rs:15:42
    |
 LL |     let _val: &'static [&'static u32] = &[&FOO]; //~ ERROR borrowed value does not live long enough
@@ -10,4 +10,4 @@ LL | }
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index ad4cd48c9deb99b6bd6ac66629bcc50da197a205..eb984fbde03a81ec1e71f61c1b382d125fd75e2f 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/issue-52049.rs:16:10
    |
 LL |     foo(&unpromotable(5u32));
@@ -10,4 +10,4 @@ LL | }
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 0747405cf14cc16768f984b7bf94e5fefa887d46..38a711bcefb0aa1d24da5dcb57681f8babaa4054 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/borrowck-let-suggestion.rs:12:17
    |
 LL |     let mut x = vec![1].iter();
@@ -14,4 +14,4 @@ LL |     x.use_mut();
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index df2e3558612c330e97af8bc76084bd6659f9a250..a98cacaad99bf5f8938efbc489d30ceaa98dd8c2 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/regions-creating-enums.rs:33:17
    |
 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
 LL | fn map_nums<'a,'b, F>(x: &ast, f: &mut F) -> &'a ast<'b> where F: FnMut(usize) -> usize {
    |             ^^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/regions-creating-enums.rs:38:17
    |
 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
 
 error: aborting due to 2 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 3bac4db3475451378ddb254ecfd7b77154c4575d..75758206d6b4817e4d7500d3da6ee5b1dbede3a1 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/regions-free-region-ordering-caller1.rs:19:27
    |
 LL |     let z: &'a & usize = &(&y);
@@ -15,4 +15,4 @@ LL | fn call1<'a>(x: &'a usize) {
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 0a6b9b718b5c8cfc816aaad8662d42bc0c8f8c9c..eb870d55e0f4b54e505495b51c8f0b708465d51b 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/regions-lifetime-of-struct-or-enum-variant.rs:24:20
    |
 LL |   let testValue = &id(Test);
@@ -13,7 +13,7 @@ note: borrowed value must be valid for the lifetime 'a as defined on the functio
 LL | fn structLifetime<'a>() -> &'a Test {
    |                   ^^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/regions-lifetime-of-struct-or-enum-variant.rs:30:20
    |
 LL |   let testValue = &id(MyEnum::Variant1);
@@ -30,4 +30,4 @@ LL | fn variantLifetime<'a>() -> &'a MyEnum {
 
 error: aborting due to 2 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index af84d36e0b4e2d67827de972bad74301f7720fc4..1976a3dc84d834299d5a8ba3b0d7eba06a15b4b3 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/regions-ref-in-fn-arg.rs:14:13
    |
 LL | fn arg_item(box ref x: Box<isize>) -> &'static isize {
@@ -9,7 +9,7 @@ LL | }
    |
    = note: borrowed value must be valid for the static lifetime...
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/regions-ref-in-fn-arg.rs:21:11
    |
 LL |     with(|box ref x| x) //~ ERROR borrowed value does not live long enough
@@ -19,4 +19,4 @@ LL |     with(|box ref x| x) //~ ERROR borrowed value does not live long enough
 
 error: aborting due to 2 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 8dfb7c18480b6fa2e700042f4f96af744b9396b1..be4d5bf9da0d505a6832f32c33492f00ea17f3e6 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/regions-ret.rs:14:13
    |
 LL |     return &id(3); //~ ERROR borrowed value does not live long enough
@@ -16,4 +16,4 @@ LL | | }
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 919e29e4ec46d0e39587b812527c708fc11e58db..e175a3e7f2f8fbc7d8299afc2f1cb5f5199625b9 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/regions-return-stack-allocated-vec.rs:14:6
    |
 LL |     &[x] //~ ERROR borrowed value does not live long enough
@@ -10,4 +10,4 @@ LL | }
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 6d1b9938a8b354ba3607675edfdc12685b92ffb4..c790f7ec1e53fca31209ec0704c736f1efc7c730 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/regions-var-type-out-of-scope.rs:19:14
    |
 LL |         x = &id(3); //~ ERROR borrowed value does not live long enough
@@ -13,4 +13,4 @@ LL |         assert_eq!(*x, 3);
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 765d8b36b0e6966c1eab8810ec93f146eb3c2baa..873871107eeae159e6ae395803e689663d0764b8 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/borrowck-let-suggestion-suffixes.rs:28:14
    |
 LL |     v3.push(&id('x'));           // statement 6
@@ -11,7 +11,7 @@ LL |     (v1, v2, v3, /* v4 is above. */ v5).use_ref();
    |
    = note: consider using a `let` binding to create a longer lived value
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/borrowck-let-suggestion-suffixes.rs:38:18
    |
 LL |         v4.push(&id('y'));
@@ -24,7 +24,7 @@ LL |         v4.use_ref();
    |
    = note: consider using a `let` binding to create a longer lived value
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/borrowck-let-suggestion-suffixes.rs:49:14
    |
 LL |     v5.push(&id('z'));
@@ -39,4 +39,4 @@ LL |     (v1, v2, v3, /* v4 is above. */ v5).use_ref();
 
 error: aborting due to 3 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index c565842c2c0020e5ad0ecd9b50b09e1289d53000..3dc64dabf903adb78ea9d676ae4bb6f1c808e45a 100644 (file)
@@ -1,11 +1,11 @@
-error[E0597]: borrowed value does not live long enough
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/borrowck-ref-into-rvalue.rs:13:11
    |
 LL |     match Some("Hello".to_string()) {
-   |           ^^^^^^^^^^^^^^^^^^^^^^^^^ temporary value does not live long enough
+   |           ^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use
 ...
 LL |     }
-   |     - temporary value only lives until here
+   |     - temporary value is freed at the end of this statement
 LL |     println!("{}", *msg);
    |                    ---- borrow later used here
    |
@@ -13,4 +13,4 @@ LL |     println!("{}", *msg);
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0597`.
+For more information about this error, try `rustc --explain E0716`.
index 098e1ce62a82cb71fa366acf687e6890100a4cb7..a93bf025d4b3c3770bcc8df66f73b884d187b260 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/issue-15480.rs:15:10
    |
 LL |         &id(3)
@@ -13,4 +13,4 @@ LL |     for &&x in &v {
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 0e5fc749d96912cf8019b05376098176fdef813c..6f7fbdcf4214543800958fc94026e0fd769f357e 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/regions-close-over-borrowed-ref-in-obj.rs:22:27
    |
 LL |         let ss: &isize = &id(1);
@@ -13,4 +13,4 @@ LL | }
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 0aeb549d95e58207911ad3f28cce46cb2e78e2e4..71e53e876a6e4e276f14657605d0851238269bbf 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/slice-borrow.rs:16:28
    |
 LL |         let x: &[isize] = &vec![1, 2, 3, 4, 5];
@@ -14,4 +14,4 @@ LL |     y.use_ref();
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 36c645479dde8179813f85a03cccad53cfcc4d1c..a498d80b67b1b2cc694a773c7bf72c0f392ee853 100644 (file)
@@ -4,7 +4,7 @@ error[E0493]: destructors cannot be evaluated at compile-time
 LL | static PROMOTION_FAIL_S: Option<&'static WithDtor> = Some(&WithDtor);
    |                                                            ^^^^^^^^ statics cannot evaluate destructors
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-drop-scope.rs:19:60
    |
 LL | static PROMOTION_FAIL_S: Option<&'static WithDtor> = Some(&WithDtor);
@@ -20,7 +20,7 @@ error[E0493]: destructors cannot be evaluated at compile-time
 LL | const PROMOTION_FAIL_C: Option<&'static WithDtor> = Some(&WithDtor);
    |                                                           ^^^^^^^^ constants cannot evaluate destructors
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-drop-scope.rs:23:59
    |
 LL | const PROMOTION_FAIL_C: Option<&'static WithDtor> = Some(&WithDtor);
@@ -56,5 +56,5 @@ LL |     (x, ()).1
 
 error: aborting due to 8 previous errors
 
-Some errors occurred: E0493, E0714.
+Some errors occurred: E0493, E0716.
 For more information about an error, try `rustc --explain E0493`.
index 3740d9051be6af053f24784b51a78da37ddc7538..a9ecc14403ab92006d14aef3db395ec2ac590ea3 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-reference-to-fn-2.rs:28:22
    |
 LL |     self_.statefn = &id(state2 as StateMachineFunc);
@@ -16,7 +16,7 @@ LL | |     return Some("state1");
 LL | | }
    | |_^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-reference-to-fn-2.rs:34:22
    |
 LL |     self_.statefn = &id(state3 as StateMachineFunc);
@@ -34,7 +34,7 @@ LL | |     return Some("state2");
 LL | | }
    | |_^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-reference-to-fn-2.rs:40:22
    |
 LL |     self_.statefn = &id(finished as StateMachineFunc);
@@ -52,7 +52,7 @@ LL | |     return Some("state3");
 LL | | }
    | |_^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-reference-to-fn-2.rs:51:19
    |
 LL |         statefn: &id(state1 as StateMachineFunc)
@@ -65,4 +65,4 @@ LL | }
 
 error: aborting due to 4 previous errors
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 3bb763eb1c779d1a1c489d9d23e63dfbfe60488a..45af062c824369e5befa108f343cb614269b5e7a 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/static-region-bound.rs:20:14
    |
 LL |     let x = &id(3); //~ ERROR borrowed value does not live long enough
@@ -11,4 +11,4 @@ LL | }
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0714`.
+For more information about this error, try `rustc --explain E0716`.
index 656a2eb698c05008c2dea361de0fd79a9a32ea0a..7c7c0468c6fcd5d341084225bbeddbc40960e561 100644 (file)
@@ -1,4 +1,4 @@
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/wf-misc-methods-issue-28609.rs:32:31
    |
 LL |     s.transmute_inherent(&mut 42) //~ ERROR does not live long enough
@@ -55,7 +55,7 @@ LL | |     &*s
 LL | | }
    | |_^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/wf-misc-methods-issue-28609.rs:63:15
    |
 LL |     s << &mut 3 //~ ERROR does not live long enough
@@ -72,7 +72,7 @@ LL | |     s << &mut 3 //~ ERROR does not live long enough
 LL | | }
    | |_^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/wf-misc-methods-issue-28609.rs:68:16
    |
 LL |     s.shl(&mut 3) //~ ERROR does not live long enough
@@ -89,7 +89,7 @@ LL | |     s.shl(&mut 3) //~ ERROR does not live long enough
 LL | | }
    | |_^
 
-error[E0714]: temporary value dropped while borrowed
+error[E0716]: temporary value dropped while borrowed
   --> $DIR/wf-misc-methods-issue-28609.rs:73:21
    |
 LL |     S2::shl(s, &mut 3) //~ ERROR does not live long enough
@@ -108,5 +108,5 @@ LL | | }
 
 error: aborting due to 6 previous errors
 
-Some errors occurred: E0597, E0714.
+Some errors occurred: E0597, E0716.
 For more information about an error, try `rustc --explain E0597`.