FTBFS - test failure in test_debug_tokenstream

Bug #1946613 reported by Dan Bungert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rust-proc-macro2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Attempting to autopkgtest rust-proc-macro2 fails as follows:

thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `"TokenStream [\n Group {\n delimiter: Bracket,\n stream: TokenStream [\n Ident {\n sym: a,\n span: bytes(2..3),\n },\n Punct {\n op: \'+\',\n spacing: Alone,\n span: bytes(4..5),\n },\n Literal {\n lit: 1,\n span: bytes(6..7),\n },\n ],\n span: bytes(1..8),\n },\n]"`,
 right: `"TokenStream [\n Group {\n delimiter: Bracket,\n stream: TokenStream [\n Ident {\n sym: a,\n span: bytes(979..980),\n },\n Punct {\n op: \'+\',\n spacing: Alone,\n span: bytes(981..982),\n },\n Literal {\n lit: 1,\n span: bytes(983..984),\n },\n ],\n span: bytes(978..985),\n },\n]"`', tests/test.rs:409:9

Smaller variants of the test has similar results, where the span bytes don't match expectations.

Revision history for this message
Brian Murray (brian-murray) wrote :

I'm unable to recreate this using autopkgtest with a qemu backend and package version 1.0.28-1 but its still clearly failing in our autopkgtest environment.

Revision history for this message
Dan Bungert (dbungert) wrote :

I just ran two autopkgtests using the schroot backend.

rust-proc-macro2-1.0.18-1 failed with:
thread 'lifetime_invalid' panicked at '"'a#" is not a valid Ident', src/fallback.rs:695:9

rust-proc-macro2-1.0.28-1 passes for me

Revision history for this message
Jeremy Bícha (jbicha) wrote :

This is fixed for Lunar and Mantic but the autopkgtests are still failing on Jammy

https://autopkgtest.ubuntu.com/packages/rust-proc-macro2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.