From 2af199d58e10374d907d26b671c8b1c2e84ebf9a Mon Sep 17 00:00:00 2001 From: Mikhail Modin Date: Tue, 25 Sep 2018 16:24:20 +0100 Subject: Update E0714 to E0716 in tests output --- src/test/ui/static/static-drop-scope.nll.stderr | 6 +++--- src/test/ui/static/static-reference-to-fn-2.nll.stderr | 10 +++++----- src/test/ui/static/static-region-bound.nll.stderr | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/test/ui/static') diff --git a/src/test/ui/static/static-drop-scope.nll.stderr b/src/test/ui/static/static-drop-scope.nll.stderr index 36c645479dd..a498d80b67b 100644 --- a/src/test/ui/static/static-drop-scope.nll.stderr +++ b/src/test/ui/static/static-drop-scope.nll.stderr @@ -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`. diff --git a/src/test/ui/static/static-reference-to-fn-2.nll.stderr b/src/test/ui/static/static-reference-to-fn-2.nll.stderr index 3740d9051be..a9ecc14403a 100644 --- a/src/test/ui/static/static-reference-to-fn-2.nll.stderr +++ b/src/test/ui/static/static-reference-to-fn-2.nll.stderr @@ -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`. diff --git a/src/test/ui/static/static-region-bound.nll.stderr b/src/test/ui/static/static-region-bound.nll.stderr index 3bb763eb1c7..45af062c824 100644 --- a/src/test/ui/static/static-region-bound.nll.stderr +++ b/src/test/ui/static/static-region-bound.nll.stderr @@ -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`. -- cgit 1.4.1-3-g733a5