rust-analyzer/crates/project-model/src
bors 0289dfa261 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.
2023-04-20 22:26:17 +00:00
..
build_scripts.rs fix: Fix receiver adjustments for extract_variable assist 2023-04-11 14:01:23 +02:00
cargo_workspace.rs Report sysroot and rustc crate loading errors 2023-03-15 11:35:34 +01:00
cfg_flag.rs Cleanup crate_graph construction 2023-03-31 14:14:04 +02:00
lib.rs Report sysroot and rustc crate loading errors 2023-03-15 11:35:34 +01:00
manifest_path.rs Canonicalize rust-project.json manifest path 2023-03-27 21:55:02 +02:00
project_json.rs Switch crate graph to use an Arena instead of a hashmap 2023-04-05 10:32:02 +02:00
rustc_cfg.rs remove needless borrows 2023-01-02 14:52:32 +00:00
sysroot.rs Add RA_UNSTABLE_SYSROOT_HACK 2023-04-20 22:55:39 +03:30
target_data_layout.rs reuse fetching target data layout from rustc function 2023-02-06 23:48:20 +03:30
tests.rs Switch crate graph to use an Arena instead of a hashmap 2023-04-05 10:32:02 +02:00
workspace.rs Auto merge of #14599 - HKalbasi:dev2, r=HKalbasi 2023-04-20 22:26:17 +00:00