@@ -49,13 +49,13 @@ const EXCEPTIONS: &[&str] = &[
4949] ;
5050
5151/// Which crates to check against the whitelist?
52- const WHITELIST_CRATES : & [ CrateVersion ] = & [
52+ const WHITELIST_CRATES : & [ CrateVersion < ' _ > ] = & [
5353 CrateVersion ( "rustc" , "0.0.0" ) ,
5454 CrateVersion ( "rustc_codegen_llvm" , "0.0.0" ) ,
5555] ;
5656
5757/// Whitelist of crates rustc is allowed to depend on. Avoid adding to the list if possible.
58- const WHITELIST : & [ Crate ] = & [
58+ const WHITELIST : & [ Crate < ' _ > ] = & [
5959 Crate ( "adler32" ) ,
6060 Crate ( "aho-corasick" ) ,
6161 Crate ( "arrayvec" ) ,
@@ -183,7 +183,7 @@ struct Crate<'a>(&'a str); // (name)
183183#[ derive( Copy , Clone , PartialOrd , Ord , PartialEq , Eq , Debug , Hash ) ]
184184struct CrateVersion < ' a > ( & ' a str , & ' a str ) ; // (name, version)
185185
186- impl < ' a > Crate < ' a > {
186+ impl Crate < ' _ > {
187187 pub fn id_str ( & self ) -> String {
188188 format ! ( "{} " , self . 0 )
189189 }
@@ -330,10 +330,10 @@ fn get_deps(path: &Path, cargo: &Path) -> Resolve {
330330
331331/// Checks the dependencies of the given crate from the given cargo metadata to see if they are on
332332/// the whitelist. Returns a list of illegal dependencies.
333- fn check_crate_whitelist < ' a , ' b > (
334- whitelist : & ' a HashSet < Crate > ,
333+ fn check_crate_whitelist < ' a > (
334+ whitelist : & ' a HashSet < Crate < ' _ > > ,
335335 resolve : & ' a Resolve ,
336- visited : & ' b mut BTreeSet < CrateVersion < ' a > > ,
336+ visited : & mut BTreeSet < CrateVersion < ' a > > ,
337337 krate : CrateVersion < ' a > ,
338338 must_be_on_whitelist : bool ,
339339) -> BTreeSet < Crate < ' a > > {
0 commit comments