Change the diagnostic number from 714 to 716.

This commit is contained in:
Felix S. Klock II 2018-09-25 16:06:28 +02:00 committed by Mikhail Modin
parent 5fc0b743d7
commit ea4d934c32
25 changed files with 58 additions and 58 deletions

View 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`.

View file

@ -25,7 +25,7 @@ fn main() {
//[ast]~| NOTE temporary value dropped here while still borrowed
//[ast]~| NOTE temporary value does not live long enough
//[ast]~| NOTE consider using a `let` binding to increase its lifetime
//[mir]~^^^^^ ERROR temporary value dropped while borrowed [E0714]
//[mir]~^^^^^ ERROR temporary value dropped while borrowed [E0716]
//[mir]~| NOTE temporary value is freed at the end of this statement
//[mir]~| NOTE creates a temporary which is freed while still in use
//[mir]~| NOTE consider using a `let` binding to create a longer lived value

View file

@ -13,7 +13,7 @@
fn bar<'a>() -> &'a mut u32 {
&mut 4
//~^ ERROR borrowed value does not live long enough (Ast) [E0597]
//~| ERROR temporary value dropped while borrowed (Mir) [E0714]
//~| ERROR temporary value dropped while borrowed (Mir) [E0716]
}
fn main() { }

View file

@ -13,7 +13,7 @@ note: borrowed value must be valid for the lifetime 'a as defined on the functio
LL | fn bar<'a>() -> &'a mut u32 {
| ^^
error[E0714]: temporary value dropped while borrowed (Mir)
error[E0716]: temporary value dropped while borrowed (Mir)
--> $DIR/issue-46472.rs:14:10
|
LL | &mut 4
@ -30,5 +30,5 @@ LL | fn bar<'a>() -> &'a mut u32 {
error: aborting due to 2 previous errors
Some errors occurred: E0597, E0714.
Some errors occurred: E0597, E0716.
For more information about an error, try `rustc --explain E0597`.

View file

@ -12,5 +12,5 @@
fn main() {
let _vec: Vec<&'static String> = vec![&String::new()];
//~^ ERROR temporary value dropped while borrowed [E0714]
//~^ ERROR temporary value dropped while borrowed [E0716]
}

View file

@ -1,4 +1,4 @@
error[E0714]: temporary value dropped while borrowed
error[E0716]: temporary value dropped while borrowed
--> $DIR/issue-47184.rs:14:44
|
LL | let _vec: Vec<&'static String> = vec![&String::new()];
@ -10,4 +10,4 @@ LL | let _vec: Vec<&'static String> = vec![&String::new()];
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`.