Skip to content

Commit cfd4e97

Browse files
Fix ui tests with better error code usage
1 parent cd27463 commit cfd4e97

31 files changed

+39
-22
lines changed

src/test/ui/asm/asm-bad-clobber.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ LL | asm!("xor %eax, %eax" : : : "{eax}");
66

77
error: aborting due to previous error
88

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

src/test/ui/asm/asm-in-bad-modifier.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ LL | asm!("mov $1, $0" : "=r"(y) : "+r"(5));
1212

1313
error: aborting due to 2 previous errors
1414

15+
Some errors have detailed explanations: E0662, E0663.
16+
For more information about an error, try `rustc --explain E0662`.

src/test/ui/asm/asm-out-no-modifier.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ LL | asm!("mov $1, $0" : "r"(x) : "r"(5));
66

77
error: aborting due to previous error
88

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

src/test/ui/asm/issue-51431.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ LL | asm! {"mov $0,$1"::"0"("bx"),"1"(0x00)}
66

77
error: aborting due to previous error
88

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

src/test/ui/bad/bad-intrinsic-monomorphization.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ LL | simd_add(a, b)
1818

1919
error: aborting due to 3 previous errors
2020

21+
For more information about this error, try `rustc --explain E0511`.

src/test/ui/error-codes/E0511.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ LL | unsafe { simd_add(0, 1); }
66

77
error: aborting due to previous error
88

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

src/test/ui/error-codes/E0660.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ LL | asm!("nop" "nop" : "=r"(a));
1212

1313
error: aborting due to 2 previous errors
1414

15+
For more information about this error, try `rustc --explain E0660`.

src/test/ui/error-codes/E0661.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ LL | let a;
1212

1313
error: aborting due to 2 previous errors
1414

15-
For more information about this error, try `rustc --explain E0282`.
15+
Some errors have detailed explanations: E0282, E0661.
16+
For more information about an error, try `rustc --explain E0282`.

src/test/ui/error-codes/E0662.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ LL | : "=test"("a")
66

77
error: aborting due to previous error
88

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

src/test/ui/error-codes/E0663.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ LL | : "+test"("a")
66

77
error: aborting due to previous error
88

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

0 commit comments

Comments
 (0)