We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64cb0bf + c00246f commit b349baaCopy full SHA for b349baa
src/tools/rust-analyzer/crates/hir/src/display.rs
@@ -134,9 +134,9 @@ impl HirDisplay for Function {
134
.as_ref()
135
.unwrap()
136
}
137
- _ => panic!("Async fn ret_type should be impl Future"),
+ _ => &TypeRef::Error,
138
},
139
140
141
};
142
src/tools/rust-analyzer/crates/hir/src/lib.rs
@@ -1977,7 +1977,6 @@ impl Function {
1977
return Type::new_with_resolver_inner(db, &resolver, output_eq.ty).into();
1978
1979
1980
- never!("Async fn ret_type should be impl Future");
1981
None
1982
1983
0 commit comments