File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1943,14 +1943,11 @@ fn clean_trait_object_lifetime_bound<'tcx>(
1943
1943
// latter contrary to `clean_middle_region`.
1944
1944
match * region {
1945
1945
ty:: ReStatic => Some ( Lifetime :: statik ( ) ) ,
1946
- ty:: ReEarlyParam ( region) if region. name != kw:: Empty => Some ( Lifetime ( region. name ) ) ,
1947
- ty:: ReBound ( _, ty:: BoundRegion { kind : ty:: BoundRegionKind :: Named ( _, name) , .. } )
1948
- if name != kw:: Empty =>
1949
- {
1946
+ ty:: ReEarlyParam ( region) => Some ( Lifetime ( region. name ) ) ,
1947
+ ty:: ReBound ( _, ty:: BoundRegion { kind : ty:: BoundRegionKind :: Named ( _, name) , .. } ) => {
1950
1948
Some ( Lifetime ( name) )
1951
1949
}
1952
- ty:: ReEarlyParam ( _)
1953
- | ty:: ReBound ( ..)
1950
+ ty:: ReBound ( ..)
1954
1951
| ty:: ReLateParam ( _)
1955
1952
| ty:: ReVar ( _)
1956
1953
| ty:: RePlaceholder ( _)
You can’t perform that action at this time.
0 commit comments