Flesh out some TODOs
This commit is contained in:
parent
51b51bb570
commit
7c8e281f73
7 changed files with 97 additions and 19 deletions
|
@ -790,7 +790,9 @@ impl<'ra: 'ast, 'ast, 'tcx> Visitor<'ast> for LateResolutionVisitor<'_, 'ast, 'r
|
|||
TyKind::Path(qself, path) => {
|
||||
self.diag_metadata.current_type_path = Some(ty);
|
||||
|
||||
// TODO:
|
||||
// If we have a path that ends with `(..)`, then it must be
|
||||
// return type notation. Resolve that path in the *value*
|
||||
// namespace.
|
||||
let source = if let Some(seg) = path.segments.last()
|
||||
&& let Some(args) = &seg.args
|
||||
&& matches!(**args, GenericArgs::ParenthesizedElided(..))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue