mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Document failed refactor
This commit is contained in:
parent
a622a8e109
commit
35e4bb3506
1 changed files with 3 additions and 3 deletions
|
@ -93,9 +93,9 @@ pub trait FileLoader {
|
||||||
fn file_text(&self, file_id: FileId) -> Arc<String>;
|
fn file_text(&self, file_id: FileId) -> Arc<String>;
|
||||||
/// Note that we intentionally accept a `&str` and not a `&Path` here. This
|
/// Note that we intentionally accept a `&str` and not a `&Path` here. This
|
||||||
/// method exists to handle `#[path = "/some/path.rs"] mod foo;` and such,
|
/// method exists to handle `#[path = "/some/path.rs"] mod foo;` and such,
|
||||||
/// so the input is guaranteed to be utf-8 string. We might introduce
|
/// so the input is guaranteed to be utf-8 string. One might be tempted to
|
||||||
/// `struct StrPath(str)` for clarity some day, but it's a bit messy, so we
|
/// introduce some kind of "utf-8 path with / separators", but that's a bad idea. Behold
|
||||||
/// get by with a `&str` for the time being.
|
/// `#[path = "C://no/way"]`
|
||||||
fn resolve_path(&self, anchor: FileId, path: &str) -> Option<FileId>;
|
fn resolve_path(&self, anchor: FileId, path: &str) -> Option<FileId>;
|
||||||
fn relevant_crates(&self, file_id: FileId) -> Arc<FxHashSet<CrateId>>;
|
fn relevant_crates(&self, file_id: FileId) -> Arc<FxHashSet<CrateId>>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue