]> git.lizzy.rs Git - rust.git/commit
Auto merge of #103693 - HKalbasi:master, r=oli-obk
authorbors <bors@rust-lang.org>
Thu, 24 Nov 2022 20:29:13 +0000 (20:29 +0000)
committerbors <bors@rust-lang.org>
Thu, 24 Nov 2022 20:29:13 +0000 (20:29 +0000)
commit2ad5e486f6a6c98211b250563eb4c495dbde07c7
tree1302f8147d1662ca75cdd70712ee22837ecfd734
parent300d10fb9992a1f2770ab5edb448abcabe1764c9
parent0aaea40eb2015a109d0be49c0d08f6435c6ce437
Auto merge of #103693 - HKalbasi:master, r=oli-obk

Make rustc_target usable outside of rustc

I'm working on showing type size in rust-analyzer (https://github.com/rust-lang/rust-analyzer/pull/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.