Skip to content

Commit 57cb881

Browse files
Update ui tests
1 parent c5e0d6e commit 57cb881

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/librustc/error_codes.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -1705,12 +1705,9 @@ Conflicting representation hints have been used on a same item.
17051705
17061706
Erroneous code example:
17071707
1708-
```compile_fail,E0566
1709-
# #![deny(warnings)]
1710-
# fn main() {
1711-
#[repr(u32, u64)] // error!
1708+
```
1709+
#[repr(u32, u64)] // warning!
17121710
enum Repr { A }
1713-
# }
17141711
```
17151712
17161713
In most cases (if not all), using just one representation hint is more than

src/test/ui/conflicting-repr-hints.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ LL | | }
6666

6767
error: aborting due to 8 previous errors
6868

69+
For more information about this error, try `rustc --explain E0566`.

src/test/ui/feature-gates/feature-gate-repr-simd.stderr

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ LL | #[repr(simd)]
2626

2727
error: aborting due to 2 previous errors
2828

29-
For more information about this error, try `rustc --explain E0658`.
29+
Some errors have detailed explanations: E0566, E0658.
30+
For more information about an error, try `rustc --explain E0566`.

0 commit comments

Comments
 (0)