Unnamed repository; edit this file 'description' to name the repository.
assert that unexpectedly unsized fields are sized in the param env
Lukas Markeffsky 2024-09-17
parent 08344c2 · commit cd442a0
-rw-r--r--crates/hir-ty/src/layout.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir-ty/src/layout.rs b/crates/hir-ty/src/layout.rs
index cc1f19c6b1..25362d23d5 100644
--- a/crates/hir-ty/src/layout.rs
+++ b/crates/hir-ty/src/layout.rs
@@ -106,10 +106,10 @@ impl fmt::Display for LayoutError {
}
}
-impl From<LayoutCalculatorError> for LayoutError {
- fn from(err: LayoutCalculatorError) -> Self {
+impl<F> From<LayoutCalculatorError<F>> for LayoutError {
+ fn from(err: LayoutCalculatorError<F>) -> Self {
match err {
- LayoutCalculatorError::UnexpectedUnsized | LayoutCalculatorError::EmptyUnion => {
+ LayoutCalculatorError::UnexpectedUnsized(_) | LayoutCalculatorError::EmptyUnion => {
LayoutError::Unknown
}
LayoutCalculatorError::SizeOverflow => LayoutError::SizeOverflow,