Skip to content

Commit f1610ae

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

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
@@ -25,6 +25,7 @@
2525
#![feature(slice_sort_by_cached_key)]
2626
#![feature(set_stdio)]
2727
#![feature(rustc_stack_internals)]
28+
#![feature(no_debug)]
2829

2930
extern crate arena;
3031
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)