This commit is contained in:
bjorn3 2018-01-20 11:55:55 +01:00
parent 82ac9f7532
commit a4854e84f2

View File

@ -26,6 +26,7 @@ use std::io::prelude::*;
use std::io::{self, Cursor}; use std::io::{self, Cursor};
use std::fs::File; use std::fs::File;
use std::path::Path; use std::path::Path;
use std::rc::Rc;
use std::sync::mpsc; use std::sync::mpsc;
use rustc_data_structures::owning_ref::{ErasedBoxRef, OwningRef}; use rustc_data_structures::owning_ref::{ErasedBoxRef, OwningRef};
@ -191,6 +192,9 @@ impl TransCrate for MetadataOnlyTransCrate {
fn provide(&self, providers: &mut Providers) { fn provide(&self, providers: &mut Providers) {
::symbol_names::provide(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) {} fn provide_extern(&self, _providers: &mut Providers) {}