Aleksey Kladov 3c72fc0573 Anchor file-system operations to the file, and not to the source root.
Anchoring to the SourceRoot wont' work if the path is absolute:

  #[path = "/tmp/foo.rs"]
  mod foo;

Anchoring to a file will.

However, we *should* anchor, instead of just producing an abs path.

I can imagine a situation where, for example, rust-analyzer processes
crates from different machines (or, for example, from in-memory git
branch), where the same absolute path in different crates might refer
to different files in the end!
2020-06-16 18:45:58 +02:00
..
fmt
2020-05-31 12:06:22 +02:00
2020-05-20 13:02:53 +02:00
2020-06-11 12:13:14 +02:00
2020-04-25 14:23:34 +02:00
fmt
2020-05-31 12:06:22 +02:00
2020-06-05 13:15:16 +02:00
2020-04-25 14:23:34 +02:00
2020-05-25 13:35:52 -04:00
2020-06-11 12:13:14 +02:00
2020-06-15 10:55:48 +02:00
2020-06-04 19:33:01 +02:00
2020-05-15 17:25:28 +02:00
2020-03-16 17:42:30 +01:00
2020-06-11 11:30:06 +02:00
2020-03-19 18:46:30 +01:00