Skip to content

Commit

Permalink
Fix ICE
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Jan 20, 2018
1 parent 82ac9f7 commit a4854e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustc_trans_utils/trans_crate.rs
Expand Up @@ -26,6 +26,7 @@ use std::io::prelude::*;
use std::io::{self, Cursor};
use std::fs::File;
use std::path::Path;
use std::rc::Rc;
use std::sync::mpsc;

use rustc_data_structures::owning_ref::{ErasedBoxRef, OwningRef};
Expand Down Expand Up @@ -191,6 +192,9 @@ impl TransCrate for MetadataOnlyTransCrate {

fn provide(&self, providers: &mut Providers) {
::symbol_names::provide(providers);
providers.target_features_enabled = |_tcx, _id| {
Rc::new(Vec::new()) // Just a dummy
};
}
fn provide_extern(&self, _providers: &mut Providers) {}

Expand Down

0 comments on commit a4854e8

Please sign in to comment.