@@ -18,7 +18,7 @@ use std::process::Command;
18
18
19
19
use serde_json;
20
20
21
- static LICENSES : & ' static [ & ' static str ] = & [
21
+ const LICENSES : & [ & str ] = & [
22
22
"MIT/Apache-2.0" ,
23
23
"MIT / Apache-2.0" ,
24
24
"Apache-2.0/MIT" ,
@@ -33,7 +33,7 @@ static LICENSES: &'static [&'static str] = &[
33
33
/// should be considered bugs. Exceptions are only allowed in Rust
34
34
/// tooling. It is _crucial_ that no exception crates be dependencies
35
35
/// of the Rust runtime (std / test).
36
- static EXCEPTIONS : & ' static [ & ' static str ] = & [
36
+ const EXCEPTIONS : & [ & str ] = & [
37
37
"mdbook" , // MPL2, mdbook
38
38
"openssl" , // BSD+advertising clause, cargo, mdbook
39
39
"pest" , // MPL2, mdbook via handlebars
@@ -54,13 +54,13 @@ static EXCEPTIONS: &'static [&'static str] = &[
54
54
] ;
55
55
56
56
/// Which crates to check against the whitelist?
57
- static WHITELIST_CRATES : & ' static [ CrateVersion ] = & [
57
+ const WHITELIST_CRATES : & [ CrateVersion ] = & [
58
58
CrateVersion ( "rustc" , "0.0.0" ) ,
59
59
CrateVersion ( "rustc_codegen_llvm" , "0.0.0" ) ,
60
60
] ;
61
61
62
62
/// Whitelist of crates rustc is allowed to depend on. Avoid adding to the list if possible.
63
- static WHITELIST : & ' static [ Crate ] = & [
63
+ const WHITELIST : & [ Crate ] = & [
64
64
Crate ( "aho-corasick" ) ,
65
65
Crate ( "arrayvec" ) ,
66
66
Crate ( "atty" ) ,
0 commit comments