mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Remove incorrect never! invocations
This commit is contained in:
parent
232e55515f
commit
5806950712
2 changed files with 2 additions and 3 deletions
|
@ -134,9 +134,9 @@ impl HirDisplay for Function {
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
}
|
}
|
||||||
_ => panic!("Async fn ret_type should be impl Future"),
|
_ => &TypeRef::Error,
|
||||||
},
|
},
|
||||||
_ => panic!("Async fn ret_type should be impl Future"),
|
_ => &TypeRef::Error,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1977,7 +1977,6 @@ impl Function {
|
||||||
return Type::new_with_resolver_inner(db, &resolver, output_eq.ty).into();
|
return Type::new_with_resolver_inner(db, &resolver, output_eq.ty).into();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
never!("Async fn ret_type should be impl Future");
|
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue