mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +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 {
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue