We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82ac9f7 commit a4854e8Copy full SHA for a4854e8
src/librustc_trans_utils/trans_crate.rs
@@ -26,6 +26,7 @@ use std::io::prelude::*;
26
use std::io::{self, Cursor};
27
use std::fs::File;
28
use std::path::Path;
29
+use std::rc::Rc;
30
use std::sync::mpsc;
31
32
use rustc_data_structures::owning_ref::{ErasedBoxRef, OwningRef};
@@ -191,6 +192,9 @@ impl TransCrate for MetadataOnlyTransCrate {
191
192
193
fn provide(&self, providers: &mut Providers) {
194
::symbol_names::provide(providers);
195
+ providers.target_features_enabled = |_tcx, _id| {
196
+ Rc::new(Vec::new()) // Just a dummy
197
+ };
198
}
199
fn provide_extern(&self, _providers: &mut Providers) {}
200
0 commit comments