forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#103693 - HKalbasi:master, r=oli-obk
Make rustc_target usable outside of rustc I'm working on showing type size in rust-analyzer (rust-lang/rust-analyzer#13490) and I currently copied rustc code inside rust-analyzer, which works, but is bad. With this change, I would become able to use `rustc_target` and `rustc_index` directly in r-a, reducing the amount of copy needed. This PR contains some feature flag to put nightly features behind them to make crates buildable on the stable compiler + makes layout related types generic over index type + removes interning of nested layouts.
- Loading branch information
Showing
31 changed files
with
2,725 additions
and
2,538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "rustc_abi" | ||
version = "0.0.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
bitflags = "1.2.1" | ||
tracing = "0.1" | ||
rand = { version = "0.8.4", default-features = false, optional = true } | ||
rand_xoshiro = { version = "0.6.0", optional = true } | ||
rustc_data_structures = { path = "../rustc_data_structures", optional = true } | ||
rustc_index = { path = "../rustc_index", default-features = false } | ||
rustc_macros = { path = "../rustc_macros", optional = true } | ||
rustc_serialize = { path = "../rustc_serialize", optional = true } | ||
|
||
[features] | ||
default = ["nightly", "randomize"] | ||
randomize = ["rand", "rand_xoshiro"] | ||
nightly = [ | ||
"rustc_data_structures", | ||
"rustc_index/nightly", | ||
"rustc_macros", | ||
"rustc_serialize", | ||
] |
Oops, something went wrong.