mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
6e8a54d0f6
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.
47 lines
1.3 KiB
TOML
47 lines
1.3 KiB
TOML
[package]
|
|
name = "hir-ty"
|
|
version = "0.0.0"
|
|
description = "TBD"
|
|
license = "MIT OR Apache-2.0"
|
|
edition = "2021"
|
|
rust-version = "1.65"
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
cov-mark = "2.0.0-pre.1"
|
|
itertools = "0.10.5"
|
|
arrayvec = "0.7.2"
|
|
smallvec = "1.10.0"
|
|
ena = "0.14.0"
|
|
tracing = "0.1.35"
|
|
rustc-hash = "1.1.0"
|
|
scoped-tls = "1.0.0"
|
|
chalk-solve = { version = "0.88.0", default-features = false }
|
|
chalk-ir = "0.88.0"
|
|
chalk-recursive = { version = "0.88.0", default-features = false }
|
|
chalk-derive = "0.88.0"
|
|
la-arena = { version = "0.3.0", path = "../../lib/la-arena" }
|
|
once_cell = "1.15.0"
|
|
typed-arena = "2.0.1"
|
|
rustc_index = { version = "0.0.20221125", package = "hkalbasi-rustc-ap-rustc_index", default-features = false }
|
|
|
|
stdx = { path = "../stdx", version = "0.0.0" }
|
|
hir-def = { path = "../hir-def", version = "0.0.0" }
|
|
hir-expand = { path = "../hir-expand", version = "0.0.0" }
|
|
base-db = { path = "../base-db", version = "0.0.0" }
|
|
profile = { path = "../profile", version = "0.0.0" }
|
|
syntax = { path = "../syntax", version = "0.0.0" }
|
|
limit = { path = "../limit", version = "0.0.0" }
|
|
|
|
[dev-dependencies]
|
|
test-utils = { path = "../test-utils" }
|
|
expect-test = "1.4.0"
|
|
tracing = "0.1.35"
|
|
tracing-subscriber = { version = "0.3.16", default-features = false, features = [
|
|
"env-filter",
|
|
"registry",
|
|
] }
|
|
tracing-tree = "0.2.1"
|