Introduce anchored_path

They allow to represent paths like `#[path = "C:\path.rs"] mod foo;`
in a lossless cross-platform & network-transparent way.
This commit is contained in:
Aleksey Kladov 2020-12-09 19:01:15 +03:00
parent 5e3891c255
commit 6e24321e45
13 changed files with 79 additions and 65 deletions

View file

@ -610,10 +610,12 @@ fn test_fn() {
source_file_edits: [],
file_system_edits: [
CreateFile {
anchor: FileId(
0,
),
dst: "foo.rs",
dst: AnchoredPathBuf {
anchor: FileId(
0,
),
path: "foo.rs",
},
},
],
is_snippet: false,