@@ -3177,33 +3177,33 @@ impl<'a> IntoIterator for &'a Path {
3177
3177
}
3178
3178
3179
3179
macro_rules! impl_cmp {
3180
- ( $lhs: ty, $rhs: ty) => {
3180
+ ( <$ ( $life : lifetime ) , * > $lhs: ty, $rhs: ty) => {
3181
3181
#[ stable( feature = "partialeq_path" , since = "1.6.0" ) ]
3182
- impl <' a , ' b > PartialEq <$rhs> for $lhs {
3182
+ impl <$ ( $life ) , * > PartialEq <$rhs> for $lhs {
3183
3183
#[ inline]
3184
3184
fn eq( & self , other: & $rhs) -> bool {
3185
3185
<Path as PartialEq >:: eq( self , other)
3186
3186
}
3187
3187
}
3188
3188
3189
3189
#[ stable( feature = "partialeq_path" , since = "1.6.0" ) ]
3190
- impl <' a , ' b > PartialEq <$lhs> for $rhs {
3190
+ impl <$ ( $life ) , * > PartialEq <$lhs> for $rhs {
3191
3191
#[ inline]
3192
3192
fn eq( & self , other: & $lhs) -> bool {
3193
3193
<Path as PartialEq >:: eq( self , other)
3194
3194
}
3195
3195
}
3196
3196
3197
3197
#[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3198
- impl <' a , ' b > PartialOrd <$rhs> for $lhs {
3198
+ impl <$ ( $life ) , * > PartialOrd <$rhs> for $lhs {
3199
3199
#[ inline]
3200
3200
fn partial_cmp( & self , other: & $rhs) -> Option <cmp:: Ordering > {
3201
3201
<Path as PartialOrd >:: partial_cmp( self , other)
3202
3202
}
3203
3203
}
3204
3204
3205
3205
#[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3206
- impl <' a , ' b > PartialOrd <$lhs> for $rhs {
3206
+ impl <$ ( $life ) , * > PartialOrd <$lhs> for $rhs {
3207
3207
#[ inline]
3208
3208
fn partial_cmp( & self , other: & $lhs) -> Option <cmp:: Ordering > {
3209
3209
<Path as PartialOrd >:: partial_cmp( self , other)
@@ -3212,40 +3212,40 @@ macro_rules! impl_cmp {
3212
3212
} ;
3213
3213
}
3214
3214
3215
- impl_cmp ! ( PathBuf , Path ) ;
3216
- impl_cmp ! ( PathBuf , & ' a Path ) ;
3217
- impl_cmp ! ( Cow <' a, Path >, Path ) ;
3218
- impl_cmp ! ( Cow <' a, Path >, & ' b Path ) ;
3219
- impl_cmp ! ( Cow <' a, Path >, PathBuf ) ;
3215
+ impl_cmp ! ( <> PathBuf , Path ) ;
3216
+ impl_cmp ! ( < ' a> PathBuf , & ' a Path ) ;
3217
+ impl_cmp ! ( < ' a> Cow <' a, Path >, Path ) ;
3218
+ impl_cmp ! ( < ' a , ' b> Cow <' a, Path >, & ' b Path ) ;
3219
+ impl_cmp ! ( < ' a> Cow <' a, Path >, PathBuf ) ;
3220
3220
3221
3221
macro_rules! impl_cmp_os_str {
3222
- ( $lhs: ty, $rhs: ty) => {
3222
+ ( <$ ( $life : lifetime ) , * > $lhs: ty, $rhs: ty) => {
3223
3223
#[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3224
- impl <' a , ' b > PartialEq <$rhs> for $lhs {
3224
+ impl <$ ( $life ) , * > PartialEq <$rhs> for $lhs {
3225
3225
#[ inline]
3226
3226
fn eq( & self , other: & $rhs) -> bool {
3227
3227
<Path as PartialEq >:: eq( self , other. as_ref( ) )
3228
3228
}
3229
3229
}
3230
3230
3231
3231
#[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3232
- impl <' a , ' b > PartialEq <$lhs> for $rhs {
3232
+ impl <$ ( $life ) , * > PartialEq <$lhs> for $rhs {
3233
3233
#[ inline]
3234
3234
fn eq( & self , other: & $lhs) -> bool {
3235
3235
<Path as PartialEq >:: eq( self . as_ref( ) , other)
3236
3236
}
3237
3237
}
3238
3238
3239
3239
#[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3240
- impl <' a , ' b > PartialOrd <$rhs> for $lhs {
3240
+ impl <$ ( $life ) , * > PartialOrd <$rhs> for $lhs {
3241
3241
#[ inline]
3242
3242
fn partial_cmp( & self , other: & $rhs) -> Option <cmp:: Ordering > {
3243
3243
<Path as PartialOrd >:: partial_cmp( self , other. as_ref( ) )
3244
3244
}
3245
3245
}
3246
3246
3247
3247
#[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3248
- impl <' a , ' b > PartialOrd <$lhs> for $rhs {
3248
+ impl <$ ( $life ) , * > PartialOrd <$lhs> for $rhs {
3249
3249
#[ inline]
3250
3250
fn partial_cmp( & self , other: & $lhs) -> Option <cmp:: Ordering > {
3251
3251
<Path as PartialOrd >:: partial_cmp( self . as_ref( ) , other)
@@ -3254,20 +3254,20 @@ macro_rules! impl_cmp_os_str {
3254
3254
} ;
3255
3255
}
3256
3256
3257
- impl_cmp_os_str ! ( PathBuf , OsStr ) ;
3258
- impl_cmp_os_str ! ( PathBuf , & ' a OsStr ) ;
3259
- impl_cmp_os_str ! ( PathBuf , Cow <' a, OsStr >) ;
3260
- impl_cmp_os_str ! ( PathBuf , OsString ) ;
3261
- impl_cmp_os_str ! ( Path , OsStr ) ;
3262
- impl_cmp_os_str ! ( Path , & ' a OsStr ) ;
3263
- impl_cmp_os_str ! ( Path , Cow <' a, OsStr >) ;
3264
- impl_cmp_os_str ! ( Path , OsString ) ;
3265
- impl_cmp_os_str ! ( & ' a Path , OsStr ) ;
3266
- impl_cmp_os_str ! ( & ' a Path , Cow <' b, OsStr >) ;
3267
- impl_cmp_os_str ! ( & ' a Path , OsString ) ;
3268
- impl_cmp_os_str ! ( Cow <' a, Path >, OsStr ) ;
3269
- impl_cmp_os_str ! ( Cow <' a, Path >, & ' b OsStr ) ;
3270
- impl_cmp_os_str ! ( Cow <' a, Path >, OsString ) ;
3257
+ impl_cmp_os_str ! ( <> PathBuf , OsStr ) ;
3258
+ impl_cmp_os_str ! ( < ' a> PathBuf , & ' a OsStr ) ;
3259
+ impl_cmp_os_str ! ( < ' a> PathBuf , Cow <' a, OsStr >) ;
3260
+ impl_cmp_os_str ! ( <> PathBuf , OsString ) ;
3261
+ impl_cmp_os_str ! ( <> Path , OsStr ) ;
3262
+ impl_cmp_os_str ! ( < ' a> Path , & ' a OsStr ) ;
3263
+ impl_cmp_os_str ! ( < ' a> Path , Cow <' a, OsStr >) ;
3264
+ impl_cmp_os_str ! ( <> Path , OsString ) ;
3265
+ impl_cmp_os_str ! ( < ' a> & ' a Path , OsStr ) ;
3266
+ impl_cmp_os_str ! ( < ' a , ' b> & ' a Path , Cow <' b, OsStr >) ;
3267
+ impl_cmp_os_str ! ( < ' a> & ' a Path , OsString ) ;
3268
+ impl_cmp_os_str ! ( < ' a> Cow <' a, Path >, OsStr ) ;
3269
+ impl_cmp_os_str ! ( < ' a , ' b> Cow <' a, Path >, & ' b OsStr ) ;
3270
+ impl_cmp_os_str ! ( < ' a> Cow <' a, Path >, OsString ) ;
3271
3271
3272
3272
#[ stable( since = "1.7.0" , feature = "strip_prefix" ) ]
3273
3273
impl fmt:: Display for StripPrefixError {
0 commit comments