@@ -3841,33 +3841,33 @@ impl<'a> IntoIterator for &'a Path {
38413841}
38423842
38433843macro_rules! impl_cmp {
3844- ( <$ ( $life : lifetime ) , * > $lhs: ty, $rhs: ty) => {
3844+ ( $lhs: ty, $rhs: ty) => {
38453845 #[ stable( feature = "partialeq_path" , since = "1.6.0" ) ]
3846- impl <$ ( $life ) , * > PartialEq <$rhs> for $lhs {
3846+ impl PartialEq <$rhs> for $lhs {
38473847 #[ inline]
38483848 fn eq( & self , other: & $rhs) -> bool {
38493849 <Path as PartialEq >:: eq( self , other)
38503850 }
38513851 }
38523852
38533853 #[ stable( feature = "partialeq_path" , since = "1.6.0" ) ]
3854- impl <$ ( $life ) , * > PartialEq <$lhs> for $rhs {
3854+ impl PartialEq <$lhs> for $rhs {
38553855 #[ inline]
38563856 fn eq( & self , other: & $lhs) -> bool {
38573857 <Path as PartialEq >:: eq( self , other)
38583858 }
38593859 }
38603860
38613861 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3862- impl <$ ( $life ) , * > PartialOrd <$rhs> for $lhs {
3862+ impl PartialOrd <$rhs> for $lhs {
38633863 #[ inline]
38643864 fn partial_cmp( & self , other: & $rhs) -> Option <cmp:: Ordering > {
38653865 <Path as PartialOrd >:: partial_cmp( self , other)
38663866 }
38673867 }
38683868
38693869 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3870- impl <$ ( $life ) , * > PartialOrd <$lhs> for $rhs {
3870+ impl PartialOrd <$lhs> for $rhs {
38713871 #[ inline]
38723872 fn partial_cmp( & self , other: & $lhs) -> Option <cmp:: Ordering > {
38733873 <Path as PartialOrd >:: partial_cmp( self , other)
@@ -3876,40 +3876,40 @@ macro_rules! impl_cmp {
38763876 } ;
38773877}
38783878
3879- impl_cmp ! ( <> PathBuf , Path ) ;
3880- impl_cmp ! ( < ' a> PathBuf , & ' a Path ) ;
3881- impl_cmp ! ( < ' a> Cow <' a , Path >, Path ) ;
3882- impl_cmp ! ( < ' a , ' b> Cow <' a , Path >, & ' b Path ) ;
3883- impl_cmp ! ( < ' a> Cow <' a , Path >, PathBuf ) ;
3879+ impl_cmp ! ( PathBuf , Path ) ;
3880+ impl_cmp ! ( PathBuf , & Path ) ;
3881+ impl_cmp ! ( Cow <' _ , Path >, Path ) ;
3882+ impl_cmp ! ( Cow <' _ , Path >, & Path ) ;
3883+ impl_cmp ! ( Cow <' _ , Path >, PathBuf ) ;
38843884
38853885macro_rules! impl_cmp_os_str {
3886- ( <$ ( $life : lifetime ) , * > $lhs: ty, $rhs: ty) => {
3886+ ( $lhs: ty, $rhs: ty) => {
38873887 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3888- impl <$ ( $life ) , * > PartialEq <$rhs> for $lhs {
3888+ impl PartialEq <$rhs> for $lhs {
38893889 #[ inline]
38903890 fn eq( & self , other: & $rhs) -> bool {
38913891 <Path as PartialEq >:: eq( self , other. as_ref( ) )
38923892 }
38933893 }
38943894
38953895 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3896- impl <$ ( $life ) , * > PartialEq <$lhs> for $rhs {
3896+ impl PartialEq <$lhs> for $rhs {
38973897 #[ inline]
38983898 fn eq( & self , other: & $lhs) -> bool {
38993899 <Path as PartialEq >:: eq( self . as_ref( ) , other)
39003900 }
39013901 }
39023902
39033903 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3904- impl <$ ( $life ) , * > PartialOrd <$rhs> for $lhs {
3904+ impl PartialOrd <$rhs> for $lhs {
39053905 #[ inline]
39063906 fn partial_cmp( & self , other: & $rhs) -> Option <cmp:: Ordering > {
39073907 <Path as PartialOrd >:: partial_cmp( self , other. as_ref( ) )
39083908 }
39093909 }
39103910
39113911 #[ stable( feature = "cmp_path" , since = "1.8.0" ) ]
3912- impl <$ ( $life ) , * > PartialOrd <$lhs> for $rhs {
3912+ impl PartialOrd <$lhs> for $rhs {
39133913 #[ inline]
39143914 fn partial_cmp( & self , other: & $lhs) -> Option <cmp:: Ordering > {
39153915 <Path as PartialOrd >:: partial_cmp( self . as_ref( ) , other)
@@ -3918,20 +3918,20 @@ macro_rules! impl_cmp_os_str {
39183918 } ;
39193919}
39203920
3921- impl_cmp_os_str ! ( <> PathBuf , OsStr ) ;
3922- impl_cmp_os_str ! ( < ' a> PathBuf , & ' a OsStr ) ;
3923- impl_cmp_os_str ! ( < ' a> PathBuf , Cow <' a , OsStr >) ;
3924- impl_cmp_os_str ! ( <> PathBuf , OsString ) ;
3925- impl_cmp_os_str ! ( <> Path , OsStr ) ;
3926- impl_cmp_os_str ! ( < ' a> Path , & ' a OsStr ) ;
3927- impl_cmp_os_str ! ( < ' a> Path , Cow <' a , OsStr >) ;
3928- impl_cmp_os_str ! ( <> Path , OsString ) ;
3929- impl_cmp_os_str ! ( < ' a> & ' a Path , OsStr ) ;
3930- impl_cmp_os_str ! ( < ' a , ' b> & ' a Path , Cow <' b , OsStr >) ;
3931- impl_cmp_os_str ! ( < ' a> & ' a Path , OsString ) ;
3932- impl_cmp_os_str ! ( < ' a> Cow <' a , Path >, OsStr ) ;
3933- impl_cmp_os_str ! ( < ' a , ' b> Cow <' a , Path >, & ' b OsStr ) ;
3934- impl_cmp_os_str ! ( < ' a> Cow <' a , Path >, OsString ) ;
3921+ impl_cmp_os_str ! ( PathBuf , OsStr ) ;
3922+ impl_cmp_os_str ! ( PathBuf , & OsStr ) ;
3923+ impl_cmp_os_str ! ( PathBuf , Cow <' _ , OsStr >) ;
3924+ impl_cmp_os_str ! ( PathBuf , OsString ) ;
3925+ impl_cmp_os_str ! ( Path , OsStr ) ;
3926+ impl_cmp_os_str ! ( Path , & OsStr ) ;
3927+ impl_cmp_os_str ! ( Path , Cow <' _ , OsStr >) ;
3928+ impl_cmp_os_str ! ( Path , OsString ) ;
3929+ impl_cmp_os_str ! ( & Path , OsStr ) ;
3930+ impl_cmp_os_str ! ( & Path , Cow <' _ , OsStr >) ;
3931+ impl_cmp_os_str ! ( & Path , OsString ) ;
3932+ impl_cmp_os_str ! ( Cow <' _ , Path >, OsStr ) ;
3933+ impl_cmp_os_str ! ( Cow <' _ , Path >, & OsStr ) ;
3934+ impl_cmp_os_str ! ( Cow <' _ , Path >, OsString ) ;
39353935
39363936#[ stable( since = "1.7.0" , feature = "strip_prefix" ) ]
39373937impl fmt:: Display for StripPrefixError {
0 commit comments