Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/lib.rs')
-rw-r--r--crates/ide/src/lib.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs
index 609cfac527..3238887257 100644
--- a/crates/ide/src/lib.rs
+++ b/crates/ide/src/lib.rs
@@ -253,11 +253,11 @@ impl Analysis {
Env::default(),
false,
CrateOrigin::Local { repo: None, name: None },
- Err("Analysis::from_single_file has no target layout".into()),
- None,
);
change.change_file(file_id, Some(Arc::from(text)));
change.set_crate_graph(crate_graph);
+ change.set_target_data_layouts(vec![Err("fixture has no layout".into())]);
+ change.set_toolchains(vec![None]);
host.apply_change(change);
(host.analysis(), file_id)
}
@@ -675,9 +675,8 @@ impl Analysis {
&self,
position: FilePosition,
new_name: &str,
- rename_external: bool,
) -> Cancellable<Result<SourceChange, RenameError>> {
- self.with_db(|db| rename::rename(db, position, new_name, rename_external))
+ self.with_db(|db| rename::rename(db, position, new_name))
}
pub fn prepare_rename(