Rename resolve_relative_path -> resolve_path

For things like `concant!(env!("OUT_DIR"))`, we need to support abs paths
This commit is contained in:
Aleksey Kladov
2020-06-05 14:55:23 +02:00
parent f98d057218
commit e63c00f100
7 changed files with 12 additions and 33 deletions

View File

@@ -57,12 +57,8 @@ impl FileLoader for RootDatabase {
fn file_text(&self, file_id: FileId) -> Arc<String> {
FileLoaderDelegate(self).file_text(file_id)
}
fn resolve_relative_path(
&self,
anchor: FileId,
relative_path: &RelativePath,
) -> Option<FileId> {
FileLoaderDelegate(self).resolve_relative_path(anchor, relative_path)
fn resolve_path(&self, anchor: FileId, relative_path: &RelativePath) -> Option<FileId> {
FileLoaderDelegate(self).resolve_path(anchor, relative_path)
}
fn relevant_crates(&self, file_id: FileId) -> Arc<Vec<CrateId>> {
FileLoaderDelegate(self).relevant_crates(file_id)