diff --git a/tests/macro-build-tests/pdcstr-compile-fail.windows.stderr b/tests/macro-build-tests/pdcstr-compile-fail.windows.stderr index 5292fa8..70f9e64 100644 --- a/tests/macro-build-tests/pdcstr-compile-fail.windows.stderr +++ b/tests/macro-build-tests/pdcstr-compile-fail.windows.stderr @@ -6,29 +6,29 @@ error[E0080]: evaluation of constant value failed | = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info) -note: erroneous constant encountered - --> tests/macro-build-tests/pdcstr-compile-fail.rs:3:13 +error[E0080]: evaluation of constant value failed + --> tests/macro-build-tests/pdcstr-compile-fail.rs:4:13 | -3 | let _ = netcorehost::pdcstr!("\0"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 | let _ = netcorehost::pdcstr!("somerandomteststring\0"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'invalid NUL value found in string literal', $DIR/tests/macro-build-tests/pdcstr-compile-fail.rs:4:13 | - = note: this note originates in the macro `$crate::pdcstring::windows::widestring::u16cstr` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info) -note: erroneous constant encountered - --> tests/macro-build-tests/pdcstr-compile-fail.rs:3:13 +error[E0080]: evaluation of constant value failed + --> tests/macro-build-tests/pdcstr-compile-fail.rs:5:13 | -3 | let _ = netcorehost::pdcstr!("\0"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 | let _ = netcorehost::pdcstr!("somerandomteststring\0somerandomteststring"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'invalid NUL value found in string literal', $DIR/tests/macro-build-tests/pdcstr-compile-fail.rs:5:13 | - = note: this note originates in the macro `$crate::pdcstring::windows::widestring::u16cstr` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0080]: evaluation of constant value failed - --> tests/macro-build-tests/pdcstr-compile-fail.rs:4:13 +note: erroneous constant encountered + --> tests/macro-build-tests/pdcstr-compile-fail.rs:5:13 | -4 | let _ = netcorehost::pdcstr!("somerandomteststring\0"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'invalid NUL value found in string literal', $DIR/tests/macro-build-tests/pdcstr-compile-fail.rs:4:13 +5 | let _ = netcorehost::pdcstr!("somerandomteststring\0somerandomteststring"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | - = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this note originates in the macro `$crate::pdcstring::windows::widestring::u16cstr` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info) note: erroneous constant encountered --> tests/macro-build-tests/pdcstr-compile-fail.rs:4:13 @@ -39,26 +39,26 @@ note: erroneous constant encountered = note: this note originates in the macro `$crate::pdcstring::windows::widestring::u16cstr` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info) note: erroneous constant encountered - --> tests/macro-build-tests/pdcstr-compile-fail.rs:4:13 + --> tests/macro-build-tests/pdcstr-compile-fail.rs:3:13 | -4 | let _ = netcorehost::pdcstr!("somerandomteststring\0"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 | let _ = netcorehost::pdcstr!("\0"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this note originates in the macro `$crate::pdcstring::windows::widestring::u16cstr` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0080]: evaluation of constant value failed - --> tests/macro-build-tests/pdcstr-compile-fail.rs:5:13 +note: erroneous constant encountered + --> tests/macro-build-tests/pdcstr-compile-fail.rs:3:13 | -5 | let _ = netcorehost::pdcstr!("somerandomteststring\0somerandomteststring"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'invalid NUL value found in string literal', $DIR/tests/macro-build-tests/pdcstr-compile-fail.rs:5:13 +3 | let _ = netcorehost::pdcstr!("\0"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | - = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this note originates in the macro `$crate::pdcstring::windows::widestring::u16cstr` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info) note: erroneous constant encountered - --> tests/macro-build-tests/pdcstr-compile-fail.rs:5:13 + --> tests/macro-build-tests/pdcstr-compile-fail.rs:4:13 | -5 | let _ = netcorehost::pdcstr!("somerandomteststring\0somerandomteststring"); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 | let _ = netcorehost::pdcstr!("somerandomteststring\0"); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this note originates in the macro `$crate::pdcstring::windows::widestring::u16cstr` which comes from the expansion of the macro `netcorehost::pdcstr` (in Nightly builds, run with -Z macro-backtrace for more info)