@@ -43,14 +43,21 @@ type ExceptionList = &'static [(&'static str, &'static str)];
43
43
/// * A list of crates for which dependencies need to be explicitly allowed.
44
44
/// * The list of allowed dependencies.
45
45
const WORKSPACES : & [ ( & str , ExceptionList , Option < ( & [ & str ] , & [ & str ] ) > ) ] = & [
46
+ // The root workspace has to be first for check_rustfix to work.
46
47
( "Cargo.toml" , EXCEPTIONS , Some ( ( & [ "rustc-main" ] , PERMITTED_RUSTC_DEPENDENCIES ) ) ) ,
47
- ( "src/tools/cargo/Cargo.toml" , EXCEPTIONS_CARGO , None ) ,
48
+ // Outside of the alphabetical section because rustfmt formats it using multiple lines.
48
49
(
49
50
"compiler/rustc_codegen_cranelift/Cargo.toml" ,
50
51
EXCEPTIONS_CRANELIFT ,
51
52
Some ( ( & [ "rustc_codegen_cranelift" ] , PERMITTED_CRANELIFT_DEPENDENCIES ) ) ,
52
53
) ,
54
+ // tidy-alphabetical-start
55
+ ( "compiler/rustc_codegen_gcc/Cargo.toml" , EXCEPTIONS_GCC , None ) ,
53
56
( "src/bootstrap/Cargo.toml" , EXCEPTIONS_BOOTSTRAP , None ) ,
57
+ ( "src/tools/cargo/Cargo.toml" , EXCEPTIONS_CARGO , None ) ,
58
+ ( "src/tools/rust-analyzer/Cargo.toml" , EXCEPTIONS_RUST_ANALYZER , None ) ,
59
+ ( "src/tools/x/Cargo.toml" , & [ ] , None ) ,
60
+ // tidy-alphabetical-end
54
61
] ;
55
62
56
63
/// These are exceptions to Rust's permissive licensing policy, and
@@ -100,6 +107,19 @@ const EXCEPTIONS_CARGO: ExceptionList = &[
100
107
// tidy-alphabetical-end
101
108
] ;
102
109
110
+ const EXCEPTIONS_RUST_ANALYZER : ExceptionList = & [
111
+ // tidy-alphabetical-start
112
+ ( "anymap" , "BlueOak-1.0.0 OR MIT OR Apache-2.0" ) ,
113
+ ( "dissimilar" , "Apache-2.0" ) ,
114
+ ( "instant" , "BSD-3-Clause" ) ,
115
+ ( "notify" , "CC0-1.0 OR Artistic-2.0" ) ,
116
+ ( "pulldown-cmark-to-cmark" , "Apache-2.0" ) ,
117
+ ( "ryu" , "Apache-2.0 OR BSL-1.0" ) ,
118
+ ( "scip" , "Apache-2.0" ) ,
119
+ ( "snap" , "BSD-3-Clause" ) ,
120
+ // tidy-alphabetical-end
121
+ ] ;
122
+
103
123
const EXCEPTIONS_CRANELIFT : ExceptionList = & [
104
124
// tidy-alphabetical-start
105
125
( "cranelift-bforest" , "Apache-2.0 WITH LLVM-exception" ) ,
@@ -121,6 +141,13 @@ const EXCEPTIONS_CRANELIFT: ExceptionList = &[
121
141
// tidy-alphabetical-end
122
142
] ;
123
143
144
+ const EXCEPTIONS_GCC : ExceptionList = & [
145
+ // tidy-alphabetical-start
146
+ ( "gccjit" , "GPL-3.0" ) ,
147
+ ( "gccjit_sys" , "GPL-3.0" ) ,
148
+ // tidy-alphabetical-end
149
+ ] ;
150
+
124
151
const EXCEPTIONS_BOOTSTRAP : ExceptionList = & [
125
152
( "ryu" , "Apache-2.0 OR BSL-1.0" ) , // through serde
126
153
] ;
0 commit comments