-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
rkyv in Rust 1.56: type annotations needed #90195
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-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.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
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-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.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.
Prior to Rust 1.56, I could use
const usizevalues when defining rkyv structs. However, in Rust 1.56, this is no longer allowed.Code
I tried this code:
I expected to see this happen: Prior to Rust 1.56, this compiled.
Instead, this happened: The following error appears:
Version it worked on
It most recently worked on: Rust 1.55
Version with regression
rustc --version --verbose: