rust/crates/hir/src
bors 6e8a54d0f6 Auto merge of #13490 - HKalbasi:layout, r=jonas-schievink
Compute data layout of types

cc #4091

Things that aren't working:
* Closures
* Generators (so no support for `Future` I think)
* Opaque types
* Type alias and associated types which may need normalization

Things that show wrong result:
* ~Enums with explicit discriminant~
* SIMD types
* ~`NonZero*` and similar standard library items which control layout with special attributes~

At the user level, I didn't put much work, since I wasn't confident about what is the best way to present this information. Currently it shows size and align for ADTs, and size, align, offset for struct fields, in the hover, similar to clangd. I used it some days and I feel I liked it, but we may consider it too noisy and move it to an assist or command.
2022-12-07 15:22:03 +00:00
..
semantics Properly support IDE functionality in enum variants 2022-09-24 02:33:59 +02:00
attrs.rs Move hir to new MacroId 2022-03-08 23:51:48 +01:00
db.rs
diagnostics.rs Revert "feat: Diagnose some incorrect usages of the question mark operator" 2022-10-18 14:18:59 +02:00
display.rs Fix type alias hovers not rendering generic parameters 2022-10-01 00:21:29 +02:00
from_id.rs Implemented basic enum const eval 2022-09-12 20:19:13 +01:00
has_source.rs fix(ide-db): correct single-file module rename 2022-05-28 15:07:22 +03:00
lib.rs Auto merge of #13490 - HKalbasi:layout, r=jonas-schievink 2022-12-07 15:22:03 +00:00
semantics.rs Generalize reborrow hints as adjustment hints 2022-11-04 21:53:23 +01:00
source_analyzer.rs Generalize reborrow hints as adjustment hints 2022-11-04 21:53:23 +01:00
symbols.rs Cleaned up code 2022-09-12 20:19:49 +01:00