We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08344c2 commit cd442a0Copy full SHA for cd442a0
crates/hir-ty/src/layout.rs
@@ -106,10 +106,10 @@ impl fmt::Display for LayoutError {
106
}
107
108
109
-impl From<LayoutCalculatorError> for LayoutError {
110
- fn from(err: LayoutCalculatorError) -> Self {
+impl<F> From<LayoutCalculatorError<F>> for LayoutError {
+ fn from(err: LayoutCalculatorError<F>) -> Self {
111
match err {
112
- LayoutCalculatorError::UnexpectedUnsized | LayoutCalculatorError::EmptyUnion => {
+ LayoutCalculatorError::UnexpectedUnsized(_) | LayoutCalculatorError::EmptyUnion => {
113
LayoutError::Unknown
114
115
LayoutCalculatorError::SizeOverflow => LayoutError::SizeOverflow,
0 commit comments