Skip to content

Commit 40deec8

Browse files
authored
Rollup merge of rust-lang#66155 - GuillaumeGomez:long-err-explanation-E0594, r=Dylan-DPC
Add long error explanation for E0594 Part of rust-lang#61137. r? @Dylan-DPC
2 parents 49077c5 + c981c99 commit 40deec8

File tree

47 files changed

+88
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+88
-22
lines changed

src/librustc_error_codes/error_codes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ E0590: include_str!("./error_codes/E0590.md"),
318318
E0591: include_str!("./error_codes/E0591.md"),
319319
E0592: include_str!("./error_codes/E0592.md"),
320320
E0593: include_str!("./error_codes/E0593.md"),
321+
E0594: include_str!("./error_codes/E0594.md"),
321322
E0595: include_str!("./error_codes/E0595.md"),
322323
E0596: include_str!("./error_codes/E0596.md"),
323324
E0597: include_str!("./error_codes/E0597.md"),
@@ -566,7 +567,6 @@ E0744: include_str!("./error_codes/E0744.md"),
566567
// E0563, // cannot determine a type for this `impl Trait` removed in 6383de15
567568
// E0564, // only named lifetimes are allowed in `impl Trait`,
568569
// but `{}` was found in the type `{}`
569-
E0594, // cannot assign to {}
570570
// E0598, // lifetime of {} is too short to guarantee its contents can be...
571571
// E0611, // merged into E0616
572572
// E0612, // merged into E0609
Lines changed: 23 additions & 0 deletions

src/test/ui/borrowck/borrow-immutable-upvar-mutation.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ LL | let _h = to_fn_mut(move || { set(&mut z); to_fn(move || z = 42); })
7272

7373
error: aborting due to 6 previous errors
7474

75-
For more information about this error, try `rustc --explain E0596`.
75+
Some errors have detailed explanations: E0594, E0596.
76+
For more information about an error, try `rustc --explain E0594`.

src/test/ui/borrowck/borrowck-assign-to-andmut-in-aliasable-loc.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ LL | *s.pointer += 1;
1616

1717
error: aborting due to 2 previous errors
1818

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

src/test/ui/borrowck/borrowck-assign-to-constants.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ LL | foo = 6;
66

77
error: aborting due to previous error
88

9+
For more information about this error, try `rustc --explain E0594`.

src/test/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
@@ -27,5 +27,5 @@ LL | let x: &mut isize = &mut **t0;
2727

2828
error: aborting due to 3 previous errors
2929

30-
Some errors have detailed explanations: E0502, E0596.
30+
Some errors have detailed explanations: E0502, E0594, E0596.
3131
For more information about an error, try `rustc --explain E0502`.

src/test/ui/borrowck/borrowck-borrow-overloaded-auto-deref.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,5 @@ LL | *x.y_mut() = 3;
112112

113113
error: aborting due to 14 previous errors
114114

115-
For more information about this error, try `rustc --explain E0596`.
115+
Some errors have detailed explanations: E0594, E0596.
116+
For more information about an error, try `rustc --explain E0594`.

src/test/ui/borrowck/borrowck-borrow-overloaded-deref.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ LL | **x = 3;
5656

5757
error: aborting due to 7 previous errors
5858

59-
For more information about this error, try `rustc --explain E0596`.
59+
Some errors have detailed explanations: E0594, E0596.
60+
For more information about an error, try `rustc --explain E0594`.

src/test/ui/borrowck/borrowck-closures-unique.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ LL | let c1 = |y: &'static mut isize| x = y;
5050

5151
error: aborting due to 4 previous errors
5252

53-
Some errors have detailed explanations: E0500, E0524.
53+
Some errors have detailed explanations: E0500, E0524, E0594.
5454
For more information about an error, try `rustc --explain E0500`.

src/test/ui/borrowck/borrowck-issue-14498.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,5 @@ LL | drop(p);
9696

9797
error: aborting due to 9 previous errors
9898

99-
For more information about this error, try `rustc --explain E0506`.
99+
Some errors have detailed explanations: E0506, E0594.
100+
For more information about an error, try `rustc --explain E0506`.

0 commit comments

Comments
 (0)