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.
@@ -2671,7 +2671,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
2671
2671
// `Self` in trait or type alias.
2672
2672
assert_eq ! ( opt_self_ty, None ) ;
2673
2673
self . prohibit_generics ( path. segments . iter ( ) , |err| {
2674
- if let [ hir:: PathSegment { args : Some ( args) , ident, .. } ] = & path. segments [ .. ] {
2674
+ if let [ hir:: PathSegment { args : Some ( args) , ident, .. } ] = & path. segments {
2675
2675
err. span_suggestion_verbose (
2676
2676
ident. span . shrink_to_hi ( ) . to ( args. span_ext ) ,
2677
2677
"the `Self` type doesn't accept type parameters" ,
You can’t perform that action at this time.
0 commit comments