diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-12 20:56:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-12 20:56:22 +0200 |
| commit | a34bcd70b2ca1ba7fb60fe0cbd1cbfd5fa57a089 (patch) | |
| tree | 80ecf040f8c30f8ee3dc617d64712c6d1596104c /compiler/rustc_resolve/src | |
| parent | b4734f01fee9fd34f80e0516798e70e8e5666533 (diff) | |
| parent | 24cbf81b8546beb8193217316acf4ded4117b4af (diff) | |
| download | rust-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')
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_resolve/src/lib.rs | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index 47d688e48fe..90a2fa89cd2 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -1116,7 +1116,6 @@ impl<'a: 'ast, 'ast, 'tcx> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast, } } } - GenericArgs::ReturnTypeNotation(_span) => {} } } } 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) |
