mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-24 19:12:55 +00:00
MIR episode 5
This commit is contained in:
parent
9b3387454d
commit
cbcafd3539
36 changed files with 1532 additions and 362 deletions
|
@ -42,8 +42,5 @@ fn find_and_interpret(db: &RootDatabase, position: FilePosition) -> Option<Strin
|
|||
let path = path.as_deref().unwrap_or("<unknown file>");
|
||||
format!("file://{path}#{}:{}", line_col.line + 1, line_col.col)
|
||||
};
|
||||
match def.eval(db, span_formatter) {
|
||||
Ok(_) => Some("pass".to_string()),
|
||||
Err(e) => Some(e),
|
||||
}
|
||||
Some(def.eval(db, span_formatter))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue