@@ -122,8 +122,6 @@ pub struct Config {
122122 pub dist_gpg_password_file : Option < PathBuf > ,
123123
124124 // libstd features
125- pub debug_jemalloc : bool ,
126- pub use_jemalloc : bool ,
127125 pub backtrace : bool , // support for RUST_BACKTRACE
128126 pub wasm_syscall : bool ,
129127
@@ -165,7 +163,6 @@ pub struct Target {
165163 pub llvm_config : Option < PathBuf > ,
166164 /// Some(path to FileCheck) if one was specified.
167165 pub llvm_filecheck : Option < PathBuf > ,
168- pub jemalloc : Option < PathBuf > ,
169166 pub cc : Option < PathBuf > ,
170167 pub cxx : Option < PathBuf > ,
171168 pub ar : Option < PathBuf > ,
@@ -300,8 +297,6 @@ struct Rust {
300297 debuginfo_only_std : Option < bool > ,
301298 debuginfo_tools : Option < bool > ,
302299 experimental_parallel_queries : Option < bool > ,
303- debug_jemalloc : Option < bool > ,
304- use_jemalloc : Option < bool > ,
305300 backtrace : Option < bool > ,
306301 default_linker : Option < String > ,
307302 channel : Option < String > ,
@@ -335,7 +330,6 @@ struct Rust {
335330struct TomlTarget {
336331 llvm_config : Option < String > ,
337332 llvm_filecheck : Option < String > ,
338- jemalloc : Option < String > ,
339333 cc : Option < String > ,
340334 cxx : Option < String > ,
341335 ar : Option < String > ,
@@ -361,7 +355,6 @@ impl Config {
361355 config. llvm_enabled = true ;
362356 config. llvm_optimize = true ;
363357 config. llvm_version_check = true ;
364- config. use_jemalloc = true ;
365358 config. backtrace = true ;
366359 config. rust_optimize = true ;
367360 config. rust_optimize_tests = true ;
@@ -497,7 +490,6 @@ impl Config {
497490 let mut debuginfo_only_std = None ;
498491 let mut debuginfo_tools = None ;
499492 let mut debug = None ;
500- let mut debug_jemalloc = None ;
501493 let mut debuginfo = None ;
502494 let mut debug_assertions = None ;
503495 let mut optimize = None ;
@@ -539,12 +531,10 @@ impl Config {
539531 debuginfo_tools = rust. debuginfo_tools ;
540532 optimize = rust. optimize ;
541533 ignore_git = rust. ignore_git ;
542- debug_jemalloc = rust. debug_jemalloc ;
543534 set ( & mut config. rust_optimize_tests , rust. optimize_tests ) ;
544535 set ( & mut config. rust_debuginfo_tests , rust. debuginfo_tests ) ;
545536 set ( & mut config. codegen_tests , rust. codegen_tests ) ;
546537 set ( & mut config. rust_rpath , rust. rpath ) ;
547- set ( & mut config. use_jemalloc , rust. use_jemalloc ) ;
548538 set ( & mut config. backtrace , rust. backtrace ) ;
549539 set ( & mut config. channel , rust. channel . clone ( ) ) ;
550540 set ( & mut config. rust_dist_src , rust. dist_src ) ;
@@ -592,9 +582,6 @@ impl Config {
592582 if let Some ( ref s) = cfg. llvm_filecheck {
593583 target. llvm_filecheck = Some ( config. src . join ( s) ) ;
594584 }
595- if let Some ( ref s) = cfg. jemalloc {
596- target. jemalloc = Some ( config. src . join ( s) ) ;
597- }
598585 if let Some ( ref s) = cfg. android_ndk {
599586 target. ndk = Some ( config. src . join ( s) ) ;
600587 }
@@ -640,7 +627,6 @@ impl Config {
640627 config. rust_debuginfo_tools = debuginfo_tools. unwrap_or ( false ) ;
641628
642629 let default = debug == Some ( true ) ;
643- config. debug_jemalloc = debug_jemalloc. unwrap_or ( default) ;
644630 config. rust_debuginfo = debuginfo. unwrap_or ( default) ;
645631 config. rust_debug_assertions = debug_assertions. unwrap_or ( default) ;
646632
0 commit comments