summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-08-26 15:53:39 -0400
committerMichael Goulet <michael@errs.io>2024-09-20 22:18:57 -0400
commit7c8e281f735d02cddfd5c5ff350482a19a3d62c5 (patch)
treeea1b1c5ffb2d9660c34fc7ae5b810344b90463e2 /compiler/rustc_resolve/src
parent51b51bb570e076d981e12a8e221ed3a74b3025c6 (diff)
downloadrust-7c8e281f735d02cddfd5c5ff350482a19a3d62c5.tar.gz
rust-7c8e281f735d02cddfd5c5ff350482a19a3d62c5.zip
Flesh out some TODOs
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/late.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs
index 813d569710a..f1d9028f88c 100644
--- a/compiler/rustc_resolve/src/late.rs
+++ b/compiler/rustc_resolve/src/late.rs
@@ -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(..))