mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
remove Cancelable from type inference
This commit is contained in:
parent
b871062e32
commit
8ba9c2d4ce
9 changed files with 88 additions and 119 deletions
|
@ -73,7 +73,7 @@ pub(crate) fn type_of(db: &RootDatabase, frange: FileRange) -> Cancelable<Option
|
|||
frange.file_id,
|
||||
parent_fn
|
||||
));
|
||||
let infer = function.infer(db)?;
|
||||
let infer = function.infer(db);
|
||||
let syntax_mapping = function.body_syntax_mapping(db);
|
||||
if let Some(expr) = ast::Expr::cast(node).and_then(|e| syntax_mapping.node_expr(e)) {
|
||||
Ok(Some(infer[expr].to_string()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue