File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ use shared_helpers::{
2828#[ path = "../utils/shared_helpers.rs" ]
2929mod shared_helpers;
3030
31+ #[ path = "../utils/proc_macro_deps.rs" ]
32+ mod proc_macro_deps;
33+
3134fn main ( ) {
3235 let orig_args = env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
3336 let mut args = orig_args. clone ( ) ;
@@ -167,7 +170,7 @@ fn main() {
167170 // issue https://github.com/rust-lang/rust/issues/100530
168171 if env:: var ( "RUSTC_TLS_MODEL_INITIAL_EXEC" ) . is_ok ( )
169172 && crate_type != Some ( "proc-macro" )
170- && ! matches ! ( crate_name, Some ( "proc_macro2" | "quote" | "syn" | "synstructure" ) )
173+ && proc_macro_deps :: CRATES . binary_search ( & crate_name. unwrap_or_default ( ) ) . is_err ( )
171174 {
172175 cmd. arg ( "-Ztls-model=initial-exec" ) ;
173176 }
You can’t perform that action at this time.
0 commit comments