@@ -3177,33 +3177,33 @@ impl<'a> IntoIterator for &'a Path {
31773177}
31783178
31793179macro_rules! impl_cmp {
3180- ( $lhs: ty, $rhs: ty) => {
3180+ ( <$ ( $life : lifetime ) , * > $lhs: ty, $rhs: ty) => {
31813181 #[ stable( feature = "partialeq_path" , since = "1.6.0" ) ]
3182- impl <' a , ' b > PartialEq <$rhs> for $lhs {
3182+ impl <$ ( $life ) , * > PartialEq <$rhs> for $lhs {
31833183 #[ inline]
31843184 fn eq( & self , other: & $rhs) -> bool {
31853185 <Path as PartialEq >:: eq( self , other)
31863186 }
31873187 }
31883188
31893189 #[ stable( feature = "partialeq_path" , since = "1.6.0" ) ]
3190- impl <' a , ' b > PartialEq <$lhs> for $rhs {
3190+ impl <$ ( $life ) , * > PartialEq <$lhs> for $rhs {
31913191 #[ inline]
31923192 fn eq( & self , other: & $lhs) -> bool {
31933193 <Path as PartialEq >:: eq( self , other)
31943194 }
31953195 }
31963196
31973197 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3198- impl <' a , ' b > PartialOrd <$rhs> for $lhs {
3198+ impl <$ ( $life ) , * > PartialOrd <$rhs> for $lhs {
31993199 #[ inline]
32003200 fn partial_cmp( & self , other: & $rhs) -> Option <cmp:: Ordering > {
32013201 <Path as PartialOrd >:: partial_cmp( self , other)
32023202 }
32033203 }
32043204
32053205 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3206- impl <' a , ' b > PartialOrd <$lhs> for $rhs {
3206+ impl <$ ( $life ) , * > PartialOrd <$lhs> for $rhs {
32073207 #[ inline]
32083208 fn partial_cmp( & self , other: & $lhs) -> Option <cmp:: Ordering > {
32093209 <Path as PartialOrd >:: partial_cmp( self , other)
@@ -3212,40 +3212,40 @@ macro_rules! impl_cmp {
32123212 } ;
32133213}
32143214
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 ) ;
32203220
32213221macro_rules! impl_cmp_os_str {
3222- ( $lhs: ty, $rhs: ty) => {
3222+ ( <$ ( $life : lifetime ) , * > $lhs: ty, $rhs: ty) => {
32233223 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3224- impl <' a , ' b > PartialEq <$rhs> for $lhs {
3224+ impl <$ ( $life ) , * > PartialEq <$rhs> for $lhs {
32253225 #[ inline]
32263226 fn eq( & self , other: & $rhs) -> bool {
32273227 <Path as PartialEq >:: eq( self , other. as_ref( ) )
32283228 }
32293229 }
32303230
32313231 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3232- impl <' a , ' b > PartialEq <$lhs> for $rhs {
3232+ impl <$ ( $life ) , * > PartialEq <$lhs> for $rhs {
32333233 #[ inline]
32343234 fn eq( & self , other: & $lhs) -> bool {
32353235 <Path as PartialEq >:: eq( self . as_ref( ) , other)
32363236 }
32373237 }
32383238
32393239 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3240- impl <' a , ' b > PartialOrd <$rhs> for $lhs {
3240+ impl <$ ( $life ) , * > PartialOrd <$rhs> for $lhs {
32413241 #[ inline]
32423242 fn partial_cmp( & self , other: & $rhs) -> Option <cmp:: Ordering > {
32433243 <Path as PartialOrd >:: partial_cmp( self , other. as_ref( ) )
32443244 }
32453245 }
32463246
32473247 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3248- impl <' a , ' b > PartialOrd <$lhs> for $rhs {
3248+ impl <$ ( $life ) , * > PartialOrd <$lhs> for $rhs {
32493249 #[ inline]
32503250 fn partial_cmp( & self , other: & $lhs) -> Option <cmp:: Ordering > {
32513251 <Path as PartialOrd >:: partial_cmp( self . as_ref( ) , other)
@@ -3254,20 +3254,20 @@ macro_rules! impl_cmp_os_str {
32543254 } ;
32553255}
32563256
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 ) ;
32713271
32723272#[ stable( since = "1.7.0" , feature = "strip_prefix" ) ]
32733273impl fmt:: Display for StripPrefixError {
0 commit comments