mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Fix size_of_val and support min_align_of_val
This commit is contained in:
parent
537f9b311d
commit
171ae2ee5d
7 changed files with 221 additions and 89 deletions
|
@ -105,7 +105,7 @@ pub fn layout_of_adt_query(
|
|||
&& variants
|
||||
.iter()
|
||||
.next()
|
||||
.and_then(|x| x.last().map(|x| x.is_unsized()))
|
||||
.and_then(|x| x.last().map(|x| !x.is_unsized()))
|
||||
.unwrap_or(true),
|
||||
)
|
||||
.ok_or(LayoutError::SizeOverflow)?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue