about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-20 22:26:17 +0000
committerbors <bors@rust-lang.org>2023-04-20 22:26:17 +0000
commit0289dfa2611a605975e10dab6d3931c21509f90c (patch)
tree763a67f2ea0383e8b8841bece602513e6d66d2ec /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parent5b6655028ac1e9f97d65a0e9ec046d68129b624d (diff)
parent39715ce26f03eef6f370afe16b7727c606026024 (diff)
downloadrust-0289dfa2611a605975e10dab6d3931c21509f90c.tar.gz
rust-0289dfa2611a605975e10dab6d3931c21509f90c.zip
Auto merge of #14599 - HKalbasi:dev2, r=HKalbasi
Detect sysroot dependencies using symlink copy

cc #7637

It is currently in a proof of concept stage, and it doesn't generates a copy. You need to provide your own sysroot copy in `/tmp/ra-sysroot-hack` in a way that `/tmp/ra-sysroot-hack/library/std/lib.rs` exists and `/tmp/ra-sysroot-hack/Cargo.toml` is [the one from this comment](https://github.com/rust-lang/rust-analyzer/issues/7637#issuecomment-1495008329). I will add the symlink code if we decide that this approach is not a dead end.

It seems to somehow work on my system. Go to definition into std dependencies works, type checking can look through fields if I make them public and `cfg_if` appears to work (I tested it by hovering both sides and seeing that the correct one is enabled). Though finding layout of `HashMap` didn't work.

Please try it and let me know if I should go forward in this direction or not.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions