mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 14:03:35 +00:00
assert that unexpectedly unsized fields are sized in the param env
This commit is contained in:
parent
08344c2ae8
commit
cd442a0577
1 changed files with 3 additions and 3 deletions
|
@ -106,10 +106,10 @@ impl fmt::Display for LayoutError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<LayoutCalculatorError> for LayoutError {
|
impl<F> From<LayoutCalculatorError<F>> for LayoutError {
|
||||||
fn from(err: LayoutCalculatorError) -> Self {
|
fn from(err: LayoutCalculatorError<F>) -> Self {
|
||||||
match err {
|
match err {
|
||||||
LayoutCalculatorError::UnexpectedUnsized | LayoutCalculatorError::EmptyUnion => {
|
LayoutCalculatorError::UnexpectedUnsized(_) | LayoutCalculatorError::EmptyUnion => {
|
||||||
LayoutError::Unknown
|
LayoutError::Unknown
|
||||||
}
|
}
|
||||||
LayoutCalculatorError::SizeOverflow => LayoutError::SizeOverflow,
|
LayoutCalculatorError::SizeOverflow => LayoutError::SizeOverflow,
|
||||||
|
|
Loading…
Reference in a new issue