about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-04-12 20:56:22 +0200
committerGitHub <noreply@github.com>2023-04-12 20:56:22 +0200
commita34bcd70b2ca1ba7fb60fe0cbd1cbfd5fa57a089 (patch)
tree80ecf040f8c30f8ee3dc617d64712c6d1596104c /compiler/rustc_resolve/src/lib.rs
parentb4734f01fee9fd34f80e0516798e70e8e5666533 (diff)
parent24cbf81b8546beb8193217316acf4ded4117b4af (diff)
downloadrust-a34bcd70b2ca1ba7fb60fe0cbd1cbfd5fa57a089.tar.gz
rust-a34bcd70b2ca1ba7fb60fe0cbd1cbfd5fa57a089.zip
Rollup merge of #110203 - compiler-errors:rtn-dots, r=eholk
Remove `..` from return type notation

`@nikomatsakis` and I decided that using `..` in the return-type notation syntax is probably overkill.

r? `@eholk` since you reviewed the last one

Since this is piggybacking now totally off of a pre-existing syntax (parenthesized generics), let me know if you need any explanation of the logic here, since it's a bit more complicated now.
Diffstat (limited to 'compiler/rustc_resolve/src/lib.rs')
-rw-r--r--compiler/rustc_resolve/src/lib.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/lib.rs b/compiler/rustc_resolve/src/lib.rs
index 274155b19aa..572b0c4cf64 100644
--- a/compiler/rustc_resolve/src/lib.rs
+++ b/compiler/rustc_resolve/src/lib.rs
@@ -312,7 +312,6 @@ impl<'a> From<&'a ast::PathSegment> for Segment {
                     (args.span, found_lifetimes)
                 }
                 GenericArgs::Parenthesized(args) => (args.span, true),
-                GenericArgs::ReturnTypeNotation(span) => (*span, false),
             }
         } else {
             (DUMMY_SP, false)