Skip to content

Commit cd7b26c

Browse files
bors[bot]Veykril
andauthored
Merge #10352
10352: feat: Implement inline callers assist r=Veykril a=Veykril Fixes #7242 Co-authored-by: Lukas Wirth <[email protected]>
2 parents 0e3e3e2 + 215a077 commit cd7b26c

File tree

6 files changed

+546
-162
lines changed

6 files changed

+546
-162
lines changed

crates/base_db/src/fixture.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ impl ChangeFixture {
161161
}
162162

163163
if crates.is_empty() {
164-
let crate_root = default_crate_root.unwrap();
164+
let crate_root = default_crate_root
165+
.expect("missing default crate root, specify a main.rs or lib.rs");
165166
crate_graph.add_crate_root(
166167
crate_root,
167168
Edition::CURRENT,

0 commit comments

Comments
 (0)