aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/validation
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-06-16 17:45:58 +0100
committerAleksey Kladov <[email protected]>2020-06-16 17:45:58 +0100
commit3c72fc05738b8a08dbf90dab18a15b9894d9e2a1 (patch)
tree18501e20ac9848d31019c572170aee9259f1d0ea /crates/ra_syntax/src/validation
parentda34d630b878f14e85be02b8ffdb702edf736539 (diff)
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!
Diffstat (limited to 'crates/ra_syntax/src/validation')
0 files changed, 0 insertions, 0 deletions