Skip to content

Commit cd13335

Browse files
Update ui tests
1 parent 4610867 commit cd13335

File tree

45 files changed

+64
-21
lines changed

Some content is hidden

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

45 files changed

+64
-21
lines changed

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

src/test/ui/borrowck/borrowck-overloaded-index-ref-index.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ LL | s[2] = 20;
3131

3232
error: aborting due to 3 previous errors
3333

34-
For more information about this error, try `rustc --explain E0502`.
34+
Some errors have detailed explanations: E0502, E0594.
35+
For more information about an error, try `rustc --explain E0502`.

src/test/ui/borrowck/index-mut-help.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ LL | let _ = &mut map["peter"];
2424

2525
error: aborting due to 3 previous errors
2626

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

0 commit comments

Comments
 (0)