File tree 1 file changed +2
-2
lines changed
compiler/rustc_hir_analysis/src/astconv
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1970,7 +1970,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
1970
1970
) = & qself. kind {
1971
1971
// If the path segment already has type params, we want to overwrite
1972
1972
// them.
1973
- match & path. segments [ .. ] {
1973
+ match & path. segments {
1974
1974
// `segment` is the previous to last element on the path,
1975
1975
// which would normally be the `enum` itself, while the last
1976
1976
// `_` `PathSegment` corresponds to the variant.
@@ -2670,7 +2670,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
2670
2670
// `Self` in trait or type alias.
2671
2671
assert_eq ! ( opt_self_ty, None ) ;
2672
2672
self . prohibit_generics ( path. segments . iter ( ) , |err| {
2673
- if let [ hir:: PathSegment { args : Some ( args) , ident, .. } ] = & path. segments [ .. ] {
2673
+ if let [ hir:: PathSegment { args : Some ( args) , ident, .. } ] = & path. segments {
2674
2674
err. span_suggestion_verbose (
2675
2675
ident. span . shrink_to_hi ( ) . to ( args. span_ext ) ,
2676
2676
"the `Self` type doesn't accept type parameters" ,
You can’t perform that action at this time.
0 commit comments