-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Regression in 1.93.0 the type <XYZ as Archive>::Archived has an unknown layout #151791
Copy link
Copy link
Closed
Closed
Copy link
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)A-layoutArea: Memory layout of typesArea: Memory layout of typesA-mir-optArea: MIR optimizationsArea: MIR optimizationsA-raw-pointersArea: raw pointers, MaybeUninit, NonNullArea: raw pointers, MaybeUninit, NonNullA-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityS-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Metadata
Metadata
Assignees
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)A-layoutArea: Memory layout of typesArea: Memory layout of typesA-mir-optArea: MIR optimizationsArea: MIR optimizationsA-raw-pointersArea: raw pointers, MaybeUninit, NonNullArea: raw pointers, MaybeUninit, NonNullA-trait-systemArea: Trait systemArea: Trait systemC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityS-has-bisectionStatus: A bisection has been found for this issueStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
I tried the following in a new cargo project. This is minimized from a real codebase.
I expected to see this happen: compilation to succeed.
Instead, this happened: multiple errors that are basically impossible to track down the cause of.
For anyone that is encountering this in the wild, updating cynic to be the latest main that uses rkyv 0.8 resolves the issue.
It would seem specifically rkyv 0.7 is causing the issue when applied to the cynic-codegen types.
Version it worked on
It most recently worked on: 1.92.0
Version with regression
rustc --version --verbose:Running a bisection I get the nightly that introduced the bug to be nightly-2025-10-24. I am unable to get the exact commit at the moment because of GitHub rate limiting.
@rustbot modify labels: +regression-from-stable-to-stable -regression-untriaged