This is a multi-part MIME message sent by reportbug.
Source: rust-bitfields
Version: 0.12.4-1
Followup-For: Bug #1103026
X-Debbugs-Cc:
[email protected]
Control: tags -1 + patch
Hi all,
Please find attached a patch to fix rust-bitfield's autopkgtest. What's happening here is tests expect the stderr of compile failures to be produced by version nightly-2024-12-15 of the rust toolchain, but our current toolchain outputs slightly different text, so the expected stderr needs to be adapted. I've also filed MR [1] so we can directly upload to unstable after the freeze ends.
Cheers!
[1]
https://salsa.debian.org/rust-team/debcargo-conf/-/merge_requests/922
Description: Adapt tests' stderr to Debian's rust toolchain
Tests in this package expect the stderr of compile failures to be produced by
version nightly-2024-12-15 of the rust toolchain (as per the source
repository's rust-toolchain.toml). Our current toolchain outputs slightly
different text, so the expected stderr needs to be adapted. This patch
introduces no functional differences. It must not be forwarded since upstream
made an intentional choice of toolchain which is not compatible with this
patch.
Author: NoisyCoil <
[email protected]>
Forwarded: not-needed
Last-Update: 2025-07-14
---
This patch header follows DEP-3:
http://dep.debian.net/deps/dep3/
--- a/tests/compile_error_cases/bitfield_field_defined_bits_0.stderr
+++ b/tests/compile_error_cases/bitfield_field_defined_bits_0.stderr
@@ -2,4 +2,4 @@
--> tests/compile_error_cases/bitfield_field_defined_bits_0.rs:5:7
|
5 | #[bits(0)]
- | ^^^^^^^
+ | ^^^^
--- a/tests/compile_error_cases/bitfield_field_nested_bitfield_without_defined_bits.stderr
+++ b/tests/compile_error_cases/bitfield_field_nested_bitfield_without_defined_bits.stderr
@@ -1,6 +1,5 @@
error: Custom and nested field types require a defined bit size, otherwise we can't determine the size of the field.
--> tests/compile_error_cases/bitfield_field_nested_bitfield_without_defined_bits.rs:7:5
|
-7 | / #[bits(default = NestedBitfield::new())]
-8 | | nested_field: NestedBitfield,
- | |________________________________^
+7 | #[bits(default = NestedBitfield::new())]
+ | ^
--- a/tests/compile_error_cases/bitfield_pad