Skip to content

Commit a95f876

Browse files
Use #[no_debug] to work around LLVM problem with rustc_driver::get_trans::LOAD.
1 parent 0ad34dc commit a95f876

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc_driver/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#![feature(quote)]
2525
#![feature(rustc_diagnostic_macros)]
2626
#![feature(set_stdio)]
27+
#![feature(no_debug)]
2728

2829
extern crate arena;
2930
extern crate getopts;
@@ -230,6 +231,9 @@ fn load_backend_from_dylib(path: &Path) -> fn() -> Box<TransCrate> {
230231

231232
pub fn get_trans(sess: &Session) -> Box<TransCrate> {
232233
static INIT: Once = ONCE_INIT;
234+
235+
#[allow(deprecated)]
236+
#[no_debug]
233237
static mut LOAD: fn() -> Box<TransCrate> = || unreachable!();
234238

235239
INIT.call_once(|| {

0 commit comments

Comments
 (0)