Skip to content

Commit 44aeda9

Browse files
uguid: Update compilation error tests
The output of `guid` failures has changed in rust 1.89, update the test expectations. Unfortunately the output is now a little worse (it references the internal `G` constant, which is not useful to display to the end user), but that seems unavoidable for now.
1 parent 25f123d commit 44aeda9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

uguid/tests/ui/guid_hex.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: GUID string contains one or more invalid characters
22
--> tests/ui/guid_hex.rs:12:14
33
|
44
12 | let _g = guid!("g1234567-89ab-cdef-0123-456789abcdef");
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation panicked: GUID string contains one or more invalid characters
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `main::G` failed here
66
|
77
= note: this error originates in the macro `guid` (in Nightly builds, run with -Z macro-backtrace for more info)

uguid/tests/ui/guid_len.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: GUID string has wrong length (expected 36 bytes)
22
--> tests/ui/guid_len.rs:12:14
33
|
44
12 | let _g = guid!("1234");
5-
| ^^^^^^^^^^^^^ evaluation panicked: GUID string has wrong length (expected 36 bytes)
5+
| ^^^^^^^^^^^^^ evaluation of `main::G` failed here
66
|
77
= note: this error originates in the macro `guid` (in Nightly builds, run with -Z macro-backtrace for more info)

uguid/tests/ui/guid_sep.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
error[E0080]: evaluation of constant value failed
1+
error[E0080]: evaluation panicked: GUID string is missing one or more separators (`-`)
22
--> tests/ui/guid_sep.rs:12:14
33
|
44
12 | let _g = guid!("01234567089ab-cdef-0123-456789abcdef");
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation panicked: GUID string is missing one or more separators (`-`)
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `main::G` failed here
66
|
77
= note: this error originates in the macro `guid` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)