1
Fork 0

Flesh out some TODOs

This commit is contained in:
Michael Goulet 2024-08-26 15:53:39 -04:00
parent 51b51bb570
commit 7c8e281f73
7 changed files with 97 additions and 19 deletions

View file

@ -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(..))