@@ -49,13 +49,13 @@ const EXCEPTIONS: &[&str] = &[
49
49
] ;
50
50
51
51
/// Which crates to check against the whitelist?
52
- const WHITELIST_CRATES : & [ CrateVersion ] = & [
52
+ const WHITELIST_CRATES : & [ CrateVersion < ' _ > ] = & [
53
53
CrateVersion ( "rustc" , "0.0.0" ) ,
54
54
CrateVersion ( "rustc_codegen_llvm" , "0.0.0" ) ,
55
55
] ;
56
56
57
57
/// Whitelist of crates rustc is allowed to depend on. Avoid adding to the list if possible.
58
- const WHITELIST : & [ Crate ] = & [
58
+ const WHITELIST : & [ Crate < ' _ > ] = & [
59
59
Crate ( "adler32" ) ,
60
60
Crate ( "aho-corasick" ) ,
61
61
Crate ( "arrayvec" ) ,
@@ -183,7 +183,7 @@ struct Crate<'a>(&'a str); // (name)
183
183
#[ derive( Copy , Clone , PartialOrd , Ord , PartialEq , Eq , Debug , Hash ) ]
184
184
struct CrateVersion < ' a > ( & ' a str , & ' a str ) ; // (name, version)
185
185
186
- impl < ' a > Crate < ' a > {
186
+ impl Crate < ' _ > {
187
187
pub fn id_str ( & self ) -> String {
188
188
format ! ( "{} " , self . 0 )
189
189
}
@@ -330,10 +330,10 @@ fn get_deps(path: &Path, cargo: &Path) -> Resolve {
330
330
331
331
/// Checks the dependencies of the given crate from the given cargo metadata to see if they are on
332
332
/// 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 < ' _ > > ,
335
335
resolve : & ' a Resolve ,
336
- visited : & ' b mut BTreeSet < CrateVersion < ' a > > ,
336
+ visited : & mut BTreeSet < CrateVersion < ' a > > ,
337
337
krate : CrateVersion < ' a > ,
338
338
must_be_on_whitelist : bool ,
339
339
) -> BTreeSet < Crate < ' a > > {
0 commit comments