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>(
19431943 // latter contrary to `clean_middle_region`.
19441944 match * region {
19451945 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) , .. } ) => {
19501948 Some ( Lifetime ( name) )
19511949 }
1952- ty:: ReEarlyParam ( _)
1953- | ty:: ReBound ( ..)
1950+ ty:: ReBound ( ..)
19541951 | ty:: ReLateParam ( _)
19551952 | ty:: ReVar ( _)
19561953 | ty:: RePlaceholder ( _)
You can’t perform that action at this time.
0 commit comments